| Package | Description |
|---|---|
| com.tangosol.util.fsm |
Contains Finite state machine interfaces.
|
| Modifier and Type | Interface | 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 | 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) Events 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
NonBlockingFiniteStateMachines 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 | 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 | 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). |