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 TypeMethodDescriptionvoid
onExitState
(S state, Event<S> event, ExecutionContext context) Performs the necessary actions when aFiniteStateMachine
exits a particular state.
-
Method Details
-
onExitState
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
-