Enum TimerState

java.lang.Object
java.lang.Enum<TimerState>
org.jboss.as.ejb3.timerservice.TimerState
All Implemented Interfaces:
Serializable, Comparable<TimerState>

public enum TimerState extends Enum<TimerState>
Timer states.

Following is the possible timer state transitions:

Version:
$Revision: $
Author:
Jaikiran Pai
  • Enum Constant Details

    • CREATED

      public static final TimerState CREATED
      State indicating that a timer has been created.
    • ACTIVE

      public static final TimerState ACTIVE
      State indicating that the timer is active and will receive any timeout notifications
    • CANCELED

      public static final TimerState CANCELED
      State indicating that the timer has been cancelled and will not receive any future timeout notifications
    • EXPIRED

      public static final TimerState EXPIRED
      State indicating that there aren't any scheduled timeouts for this timer
    • IN_TIMEOUT

      public static final TimerState IN_TIMEOUT
      State indicating that the timer has received a timeout notification and is processing the timeout task
    • RETRY_TIMEOUT

      public static final TimerState RETRY_TIMEOUT
      State indicating that the timeout task has to be retried
  • Field Details

  • Method Details

    • values

      public static TimerState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TimerState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null