Enum TimerState

    • Enum Constant Detail

      • 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
    • Method Detail

      • values

        public static TimerState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TimerState c : TimerState.values())
            System.out.println(c);
        
        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