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

com.codepoetics.fluvius.api.history.StepSucceededEvent 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 successful completion of a step.
 *
 * @param  The type to which event data is serialised.
 */
public final class StepSucceededEvent extends FlowEvent {

  private final T result;

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

  /**
   * Get the result of executing the step.
   *
   * @return The result of executing the step.
   */
  public T getResult() {
    return result;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy