Package com.tangosol.util.fsm
Interface StateExitAction<S extends Enum<S>>
- Type Parameters:
S- the type of the state
public interface StateExitAction<S extends Enum<S>>
A
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.
- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptionvoidonExitState(S state, Event<S> event, ExecutionContext context) Performs the necessary actions when aFiniteStateMachineexits a particular state.
-
Method Details
-
onExitState
Performs the necessary actions when aFiniteStateMachineexits a particular state.- Parameters:
state- the state of theFiniteStateMachineprior to changing stateevent- theEventthat triggered the actioncontext- theExecutionContextfor the action
-