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>>
AStateExitAction
encapsulates the actions to be performed by aFiniteStateMachine
when leaving a known state.A
StateExitAction
for a particular state will be executed prior to aFiniteStateMachine
entering a new state.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onExitState(S state, Event<S> event, ExecutionContext context)
Performs the necessary actions when aFiniteStateMachine
exits a particular state.
-
-
-
Method Detail
-
onExitState
void onExitState(S state, Event<S> event, ExecutionContext context)
Performs the necessary actions when aFiniteStateMachine
exits a particular state.- Parameters:
state
- the state of theFiniteStateMachine
prior to changing stateevent
- theEvent
that triggered the actioncontext
- theExecutionContext
for the action
-
-