Package com.tangosol.util.fsm
Interface LifecycleAwareEvent<S extends Enum<S>>
- Type Parameters:
S
- the type of state of aFiniteStateMachine
- All Superinterfaces:
Event<S>
- All Known Implementing Classes:
NonBlockingFiniteStateMachine.CoalescedEvent
,NonBlockingFiniteStateMachine.SubsequentEvent
A
LifecycleAwareEvent
is a specialized Event
that
receives callbacks during the processing of the Event
by
a FiniteStateMachine
.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onAccept
(ExecutionContext context) Called by aFiniteStateMachine
when theLifecycleAwareEvent
is initially about to be accepted for processing.void
onProcessed
(ExecutionContext context) Called by aFiniteStateMachine
when theLifecycleAwareEvent
has been processed.void
onProcessing
(ExecutionContext context) Called by aFiniteStateMachine
when theLifecycleAwareEvent
is about to be processed.Methods inherited from interface com.tangosol.util.fsm.Event
getDesiredState
-
Method Details
-
onAccept
Called by aFiniteStateMachine
when theLifecycleAwareEvent
is initially about to be accepted for processing.- Parameters:
context
- theExecutionContext
for theEvent
- Returns:
true
if theEvent
should be accepted, orfalse
if theFiniteStateMachine
should ignore theLifecycleAwareEvent
-
onProcessing
Called by aFiniteStateMachine
when theLifecycleAwareEvent
is about to be processed.- Parameters:
context
- theExecutionContext
for theEvent
-
onProcessed
Called by aFiniteStateMachine
when theLifecycleAwareEvent
has been processed.- Parameters:
context
- theExecutionContext
for theEvent
-