All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codepoetics.fluvius.api.history.StepFailedEvent Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package com.codepoetics.fluvius.api.history;

import java.util.UUID;

/**
 * Event representing the failure of a step to execute.
 *
 * @param  The type to which the failure reason is serialised.
 */
public final class StepFailedEvent extends FlowEvent {

  private final T reason;

  StepFailedEvent(UUID flowId, UUID stepId, long timestamp, T reason) {
    super(flowId, stepId, timestamp);
    this.reason = reason;
  }

  /**
   * Get the reason why execution of the step failed.
   *
   * @return The reason why execution of the step failed.
   */
  public T getReason() {
    return reason;
  }

  @Override
  public  V translate(FlowEventTranslator translator) {
    return translator.translateStepFailedEvent(this);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy