S - the type of the statepublic interface StateExitAction<S extends Enum<S>>
StateExitAction encapsulates the actions to be performed by
a FiniteStateMachine when leaving a known state.
A StateExitAction for a particular state will be executed
prior to a FiniteStateMachine entering a new state.
| Modifier and Type | Method and Description |
|---|---|
void |
onExitState(S state,
Event<S> event,
ExecutionContext context)
Performs the necessary actions when a
FiniteStateMachine
exits a particular state. |
void onExitState(S state, Event<S> event, ExecutionContext context)
FiniteStateMachine
exits a particular state.state - the state of the FiniteStateMachine prior to
changing stateevent - the Event that triggered the actioncontext - the ExecutionContext for the action