Package com.tangosol.util.fsm
Interface Event<S extends Enum<S>>
-
- Type Parameters:
S- the type of the state of theFiniteStateMachine
- All Known Subinterfaces:
LifecycleAwareEvent<S>
- All Known Implementing Classes:
Instruction.TransitionTo,NonBlockingFiniteStateMachine.CoalescedEvent,NonBlockingFiniteStateMachine.DelayedTransitionTo,NonBlockingFiniteStateMachine.SubsequentEvent
public interface Event<S extends Enum<S>>AnEventcaptures the information that may trigger aTransitionin aFiniteStateMachinefrom one state to another.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SgetDesiredState(S state, ExecutionContext context)Determines the desired state of theFiniteStateMachinefor theEventgiven the current state of theFiniteStateMachine.
-
-
-
Method Detail
-
getDesiredState
S getDesiredState(S state, ExecutionContext context)
Determines the desired state of theFiniteStateMachinefor theEventgiven the current state of theFiniteStateMachine.- Parameters:
state- the current state of theFiniteStateMachinecontext- theExecutionContextfor theEvent- Returns:
- the desired state of the
FiniteStateMachineornullif no transition is required
-
-