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>
ALifecycleAwareEventis a specializedEventthat receives callbacks during the processing of theEventby aFiniteStateMachine.- Since:
- Coherence 12.2.1
- Author:
- Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonAccept(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 Detail
-
onAccept
boolean onAccept(ExecutionContext context)
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
void onProcessing(ExecutionContext context)
Called by aFiniteStateMachinewhen theLifecycleAwareEventis about to be processed.- Parameters:
context- theExecutionContextfor theEvent
-
onProcessed
void onProcessed(ExecutionContext context)
Called by aFiniteStateMachinewhen theLifecycleAwareEventhas been processed.- Parameters:
context- theExecutionContextfor theEvent
-
-