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>>
AnEvent
captures the information that may trigger aTransition
in aFiniteStateMachine
from 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 S
getDesiredState(S state, ExecutionContext context)
Determines the desired state of theFiniteStateMachine
for theEvent
given the current state of theFiniteStateMachine
.
-
-
-
Method Detail
-
getDesiredState
S getDesiredState(S state, ExecutionContext context)
Determines the desired state of theFiniteStateMachine
for theEvent
given the current state of theFiniteStateMachine
.- Parameters:
state
- the current state of theFiniteStateMachine
context
- theExecutionContext
for theEvent
- Returns:
- the desired state of the
FiniteStateMachine
ornull
if no transition is required
-
-