com.codepoetics.fluvius.api.history.StepSucceededEvent Maven / Gradle / Ivy
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