public static class NonBlockingFiniteStateMachine.ProcessEventLater<S extends Enum<S>> extends Object implements Instruction
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)
Instruction.ProcessEventInstruction.ProcessEvent<S extends Enum<S>>, Instruction.TransitionTo<S extends Enum<S>>NOTHING, STOP| Constructor and Description | 
|---|
ProcessEventLater(Event<S> event)
Constructs a  
NonBlockingFiniteStateMachine.ProcessEventLater without a specified time (to be schedule as soon as possible). | 
ProcessEventLater(Event<S> event, long duration, TimeUnit timeUnit)
Constructs a  
NonBlockingFiniteStateMachine.ProcessEventLater with the specified delay time. | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getDuration()
Obtains the amount of time to wait before the transition to the desired state should occur. 
 | 
Event<S> | 
getEvent()
Obtain the  
Event to process later. | 
TimeUnit | 
getTimeUnit()
Obtains the  
TimeUnit for the getDuration(). | 
public ProcessEventLater(Event<S> event)
NonBlockingFiniteStateMachine.ProcessEventLater without a specified time (to be schedule as soon as possible).event - the Event to process laterpublic ProcessEventLater(Event<S> event, long duration, TimeUnit timeUnit)
NonBlockingFiniteStateMachine.ProcessEventLater with the specified delay time.public Event<S> getEvent()
Event to process later.Event to processpublic long getDuration()
getTimeUnit()public TimeUnit getTimeUnit()
TimeUnit for the getDuration().TimeUnit