Package com.tangosol.util.fsm
Interface StateEntryAction<S extends Enum<S>>
-
- Type Parameters:
S- the type of the state
public interface StateEntryAction<S extends Enum<S>>AStateEntryActionencapsulates the actions to be performed by aFiniteStateMachinewhen a particular state is entered.A
StateEntryActionfor a particular state will be executed when theFiniteStateMachinehas been set (to the said state) or aTransition(to the said state) has successfully completed.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstructiononEnterState(S exitingState, S enteringState, Event<S> event, ExecutionContext context)Performs the necessary actions when aFiniteStateMachineenters a particular state.
-
-
-
Method Detail
-
onEnterState
Instruction onEnterState(S exitingState, S enteringState, Event<S> event, ExecutionContext context)
Performs the necessary actions when aFiniteStateMachineenters a particular state. Once finished, the returnedInstructionis performed.- Parameters:
exitingState- the previous state of theFiniteStateMachineprior to the state change (may benullif there was no previous state)enteringState- the new state of theFiniteStateMachineevent- theEventthat triggered the actioncontext- theExecutionContextfor the action- Returns:
- the
Instructionto be performed by theFiniteStateMachine
-
-