|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CascadeListener
Interface CascadeListener provides hooks for receiving events on various stages of a Cascade
execution.
RuntimeException
thrown from any of the listener methods will force the given cascade
to
stop by calling Cascade.stop()
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |