Package com.tangosol.util.fsm
Class NonBlockingFiniteStateMachine.ProcessEventLater<S extends Enum<S>>
java.lang.Object
com.tangosol.util.fsm.NonBlockingFiniteStateMachine.ProcessEventLater<S>
- All Implemented Interfaces:
- Instruction
- Enclosing class:
- NonBlockingFiniteStateMachine<S extends Enum<S>>
public static class NonBlockingFiniteStateMachine.ProcessEventLater<S extends Enum<S>>
extends Object
implements Instruction
A specialized 
Instruction for NonBlockingFiniteStateMachines
 that enables a StateEntryAction to request an Event to
 be processed at some point in the future.
 
 This is the same as calling NonBlockingFiniteStateMachine.processLater(Event, long, TimeUnit)
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.util.fsm.InstructionInstruction.ProcessEvent<S extends Enum<S>>, Instruction.TransitionTo<S extends Enum<S>>
- 
Field SummaryFields inherited from interface com.tangosol.util.fsm.InstructionNOTHING, STOP
- 
Constructor SummaryConstructorsConstructorDescriptionProcessEventLater(Event<S> event) Constructs aNonBlockingFiniteStateMachine.ProcessEventLaterwithout a specified time (to be schedule as soon as possible).ProcessEventLater(Event<S> event, long duration, TimeUnit timeUnit) Constructs aNonBlockingFiniteStateMachine.ProcessEventLaterwith the specified delay time.
- 
Method SummaryModifier and TypeMethodDescriptionlongObtains the amount of time to wait before the transition to the desired state should occur.getEvent()Obtain theEventto process later.Obtains theTimeUnitfor thegetDuration().
- 
Constructor Details- 
ProcessEventLaterConstructs aNonBlockingFiniteStateMachine.ProcessEventLaterwithout a specified time (to be schedule as soon as possible).- Parameters:
- event- the- Eventto process later
 
- 
ProcessEventLaterConstructs aNonBlockingFiniteStateMachine.ProcessEventLaterwith the specified delay time.
 
- 
- 
Method Details- 
getEventObtain theEventto process later.- Returns:
- the Eventto process
 
- 
getDurationpublic long getDuration()Obtains the amount of time to wait before the transition to the desired state should occur.- Returns:
- the amount of time in the getTimeUnit()
 
- 
getTimeUnitObtains theTimeUnitfor thegetDuration().- Returns:
- the TimeUnit
 
 
-