S - the type of stateE - the type of eventpublic interface StateListener<S,E>
StateListener for various state events.| Modifier and Type | Method and Description |
|---|---|
void |
onComplete(StateContext<S,E> context)
Called when
State want to notify of its completion. |
void |
onEntry(StateContext<S,E> context)
Called when
State want to notify of its entry. |
void |
onExit(StateContext<S,E> context)
Called when
State want to notify of its exit. |
void onEntry(StateContext<S,E> context)
State want to notify of its entry.context - the state contextvoid onExit(StateContext<S,E> context)
State want to notify of its exit.context - the state contextvoid onComplete(StateContext<S,E> context)
State want to notify of its completion.context - the state context