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 TypeMethodDescriptionbooleanonAccept(ExecutionContext context) Called by aFiniteStateMachinewhen theLifecycleAwareEventis initially about to be accepted for processing.voidonProcessed(ExecutionContext context) Called by aFiniteStateMachinewhen theLifecycleAwareEventhas been processed.voidonProcessing(ExecutionContext context) Called by aFiniteStateMachinewhen theLifecycleAwareEventis about to be processed.Methods inherited from interface com.tangosol.util.fsm.Event
getDesiredState
-
Method Details
-
onAccept
Called by aFiniteStateMachinewhen theLifecycleAwareEventis initially about to be accepted for processing.- Parameters:
context- theExecutionContextfor theEvent- Returns:
trueif theEventshould be accepted, orfalseif theFiniteStateMachineshould ignore theLifecycleAwareEvent
-
onProcessing
Called by aFiniteStateMachinewhen theLifecycleAwareEventis about to be processed.- Parameters:
context- theExecutionContextfor theEvent
-
onProcessed
Called by aFiniteStateMachinewhen theLifecycleAwareEventhas been processed.- Parameters:
context- theExecutionContextfor theEvent
-