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>>
An
Event
captures the information that may trigger a Transition
in a FiniteStateMachine
from one state to another.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptiongetDesiredState
(S state, ExecutionContext context) Determines the desired state of theFiniteStateMachine
for theEvent
given the current state of theFiniteStateMachine
.
-
Method Details
-
getDesiredState
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
-