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>>AStateExitActionencapsulates the actions to be performed by aFiniteStateMachinewhen leaving a known state.A
StateExitActionfor a particular state will be executed prior to aFiniteStateMachineentering a new state.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonExitState(S state, Event<S> event, ExecutionContext context)Performs the necessary actions when aFiniteStateMachineexits a particular state.
-
-
-
Method Detail
-
onExitState
void onExitState(S state, Event<S> event, ExecutionContext context)
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
-
-