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
public interface LifecycleAwareEvent<S extends Enum<S>> extends Event<S>
ALifecycleAwareEvent
is a specializedEvent
that receives callbacks during the processing of theEvent
by aFiniteStateMachine
.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
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 Detail
-
onAccept
boolean onAccept(ExecutionContext context)
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
void onProcessing(ExecutionContext context)
Called by aFiniteStateMachine
when theLifecycleAwareEvent
is about to be processed.- Parameters:
context
- theExecutionContext
for theEvent
-
onProcessed
void onProcessed(ExecutionContext context)
Called by aFiniteStateMachine
when theLifecycleAwareEvent
has been processed.- Parameters:
context
- theExecutionContext
for theEvent
-
-