public interface CascadeListener
Cascade
execution.
Any RuntimeException
thrown from any of the listener methods will force the given cascade
to
stop by calling Cascade.stop()
.Modifier and Type | Method and Description |
---|---|
void |
onCompleted(Cascade cascade)
The onCompleted event is fired when a Cascade instance has completed all work whether if was success or failed.
|
void |
onStarting(Cascade cascade)
The onStarting event is fired when a Cascade instance receives the start() message.
|
void |
onStopping(Cascade cascade)
The onStopping event is fired when a Cascade instance receives the stop() message.
|
boolean |
onThrowable(Cascade cascade,
Throwable throwable)
The onThrowable event is fired if any child
Flow throws a Throwable type. |
void onStarting(Cascade cascade)
cascade
- the current Cascadevoid onStopping(Cascade cascade)
cascade
- the current Cascadevoid onCompleted(Cascade cascade)
cascade
- the current Cascadeboolean onThrowable(Cascade cascade, Throwable throwable)
Flow
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 Cascade.complete()
method.cascade
- the current Cascadethrowable
- the current errorCopyright © 2007-2015 Concurrent, Inc. All Rights Reserved.