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:
  • Constructor Details

  • Method Details

    • getEvent

      public Event<S> getEvent()
      Obtain the Event to process later.
      Returns:
      the Event to process
    • getDuration

      public 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()
    • getTimeUnit

      public TimeUnit getTimeUnit()
      Obtains the TimeUnit for the getDuration().
      Returns:
      the TimeUnit