Uses of Interface
com.tangosol.util.fsm.Event
-
Uses of Event in com.tangosol.util.fsm
Modifier and TypeInterfaceDescriptioninterface
LifecycleAwareEvent<S extends Enum<S>>
ALifecycleAwareEvent
is a specializedEvent
that receives callbacks during the processing of theEvent
by aFiniteStateMachine
.Modifier and TypeClassDescriptionstatic final class
Instruction.TransitionTo<S extends Enum<S>>
static class
NonBlockingFiniteStateMachine.CoalescedEvent<S extends Enum<S>>
ANonBlockingFiniteStateMachine.CoalescedEvent
is aLifecycleAwareEvent
that coalesces other (wrapped)Event
s with the same discriminator so that only oneEvent
actually executes.static class
NonBlockingFiniteStateMachine.DelayedTransitionTo<S extends Enum<S>>
ANonBlockingFiniteStateMachine.DelayedTransitionTo
is a specializedInstruction
forNonBlockingFiniteStateMachine
s that enables aStateEntryAction
to request a delayed transition to another state, unlike aInstruction.TransitionTo
Instruction
which occurs immediately.static class
NonBlockingFiniteStateMachine.SubsequentEvent<S extends Enum<S>>
ANonBlockingFiniteStateMachine.SubsequentEvent
is anEvent
that ensures that another (wrapped)Event
to occur if an only if theFiniteStateMachine
is at a certain transition count.Modifier and TypeMethodDescriptionInstruction.ProcessEvent.getEvent()
Obtain theEvent
to process.NonBlockingFiniteStateMachine.ProcessEventLater.getEvent()
Obtain theEvent
to process later.Modifier and TypeMethodDescriptionStateEntryAction.onEnterState
(S exitingState, S enteringState, Event<S> event, ExecutionContext context) Performs the necessary actions when aFiniteStateMachine
enters a particular state.void
StateExitAction.onExitState
(S state, Event<S> event, ExecutionContext context) Performs the necessary actions when aFiniteStateMachine
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 aTransition
from one state to another, triggered by a specifiedEvent
.void
Request theFiniteStateMachine
to process the specifiedEvent
.void
Request theFiniteStateMachine
to process the specifiedEvent
.void
NonBlockingFiniteStateMachine.processLater
(Event<S> event) Request theFiniteStateMachine
to process the specifiedEvent
as soon as possible.void
NonBlockingFiniteStateMachine.processLater
(Event<S> event, long duration, TimeUnit timeUnit) Request theFiniteStateMachine
to process the specifiedEvent
at some point in the future (represented as a duration to wait from the moment the method is called).ModifierConstructorDescriptionCoalescedEvent
(Event<S> event) Constructs aNonBlockingFiniteStateMachine.CoalescedEvent
of the specifiedEvent
type usingNonBlockingFiniteStateMachine.CoalescedEvent.Process.FIRST
.Constructs aNonBlockingFiniteStateMachine.CoalescedEvent
of the specifiedEvent
type.CoalescedEvent
(Event<S> event, NonBlockingFiniteStateMachine.CoalescedEvent.Process mode, Object discriminator) Constructs aNonBlockingFiniteStateMachine.CoalescedEvent
with the specified discriminator andEvent
.ProcessEvent
(Event<S> event) Constructs aInstruction.ProcessEvent
Instruction
.ProcessEventLater
(Event<S> event) Constructs aNonBlockingFiniteStateMachine.ProcessEventLater
without a specified time (to be schedule as soon as possible).ProcessEventLater
(Event<S> event, long duration, TimeUnit timeUnit) Constructs aNonBlockingFiniteStateMachine.ProcessEventLater
with the specified delay time.SubsequentEvent
(Event<S> event) Constructs aNonBlockingFiniteStateMachine.SubsequentEvent
.Task
(Event<S> event, NonBlockingFiniteStateMachine.TaskDependencies deps) Create a Task with given event.