Package | Description |
---|---|
com.tangosol.util.fsm |
Contains Finite state machine interfaces.
|
Modifier and Type | Interface and Description |
---|---|
interface |
LifecycleAwareEvent<S extends Enum<S>>
A
LifecycleAwareEvent is a specialized Event that
receives callbacks during the processing of the Event by
a FiniteStateMachine . |
Modifier and Type | Class and Description |
---|---|
static class |
Instruction.TransitionTo<S extends Enum<S>>
|
static class |
NonBlockingFiniteStateMachine.CoalescedEvent<S extends Enum<S>>
A
NonBlockingFiniteStateMachine.CoalescedEvent is a LifecycleAwareEvent that
coalesces other (wrapped) Event s with the same discriminator
so that only one Event actually executes. |
static class |
NonBlockingFiniteStateMachine.DelayedTransitionTo<S extends Enum<S>>
A
NonBlockingFiniteStateMachine.DelayedTransitionTo is a specialized Instruction for
NonBlockingFiniteStateMachine s that enables a StateEntryAction to request a delayed transition to another state,
unlike a Instruction.TransitionTo Instruction which occurs
immediately. |
static class |
NonBlockingFiniteStateMachine.SubsequentEvent<S extends Enum<S>>
A
NonBlockingFiniteStateMachine.SubsequentEvent is an Event that ensures that
another (wrapped) Event to occur if an only if the FiniteStateMachine is at a certain transition count. |
Modifier and Type | Method and Description |
---|---|
Event<S> |
Instruction.ProcessEvent.getEvent()
Obtain the
Event to process. |
Event<S> |
NonBlockingFiniteStateMachine.ProcessEventLater.getEvent()
Obtain the
Event to process later. |
Modifier and Type | Method and Description |
---|---|
Instruction |
StateEntryAction.onEnterState(S exitingState,
S enteringState,
Event<S> event,
ExecutionContext context)
Performs the necessary actions when a
FiniteStateMachine
enters a particular state. |
void |
StateExitAction.onExitState(S state,
Event<S> event,
ExecutionContext context)
Performs the necessary actions when a
FiniteStateMachine
exits a particular state. |
void |
TransitionAction.onTransition(String sName,
S stateFrom,
S stateTo,
Event<S> event,
ExecutionContext context)
Performs the necessary actions as part of a
Transition from one
state to another, triggered by a specified Event . |
void |
FiniteStateMachine.process(Event<S> event)
Request the
FiniteStateMachine to process the specified Event . |
void |
NonBlockingFiniteStateMachine.process(Event<S> event)
Request the
FiniteStateMachine to process the specified Event . |
void |
NonBlockingFiniteStateMachine.processLater(Event<S> event)
Request the
FiniteStateMachine to process the specified Event as soon as possible. |
void |
NonBlockingFiniteStateMachine.processLater(Event<S> event,
long duration,
TimeUnit timeUnit)
Request the
FiniteStateMachine to process the specified Event at some point in the future (represented as a duration to wait
from the moment the method is called). |