public interface FlowListener
Flow
execution.
Any RuntimeException
thrown from any of the listener methods will force the given flow
to
stop by calling Flow.stop()
.Modifier and Type | Method and Description |
---|---|
void |
onCompleted(Flow flow)
The onCompleted event is fired when a Flow instance has completed all work whether if was success or failed.
|
void |
onStarting(Flow flow)
The onStarting event is fired when a Flow instance receives the start() message.
|
void |
onStopping(Flow flow)
The onStopping event is fired when a Flow instance receives the stop() message.
|
boolean |
onThrowable(Flow flow,
java.lang.Throwable throwable)
The onThrowable event is fired if any child
FlowStep throws a Throwable type. |
void onStarting(Flow flow)
flow
- void onStopping(Flow flow)
flow
- void onCompleted(Flow flow)
flow
- boolean onThrowable(Flow flow, java.lang.Throwable throwable)
FlowStep
throws a Throwable type. This throwable is passed
as an argument to the event. This event method should return true if the given throwable was handled and should
not be rethrown from the Flow.complete()
method.flow
- throwable
- Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.