Package org.jboss.as.ejb3.timerservice
Enum TimerState
- All Implemented Interfaces:
Serializable,Comparable<TimerState>
Timer states.
Following is the possible timer state transitions:
-
CREATED- on create -
CREATED->ACTIVE- when started without Tx -
ACTIVE->CANCELED- on cancel() without Tx -
ACTIVE->IN_TIMEOUT- on TimerTask run -
IN_TIMEOUT->ACTIVE- on Tx commit if intervalDuration > 0 -
IN_TIMEOUT->EXPIRED-> on Tx commit if intervalDuration == 0 -
IN_TIMEOUT->RETRY_TIMEOUT-> on Tx rollback -
RETRY_TIMEOUT->ACTIVE-> on Tx commit/rollback if intervalDuration > 0 -
RETRY_TIMEOUT->EXPIRED-> on Tx commit/rollback if intervalDuration == 0
- Version:
- $Revision: $
- Author:
- Jaikiran Pai
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionState indicating that the timer is active and will receive any timeout notificationsState indicating that the timer has been cancelled and will not receive any future timeout notificationsState indicating that a timer has been created.State indicating that there aren't any scheduled timeouts for this timerState indicating that the timer has received a timeout notification and is processing the timeout taskState indicating that the timeout task has to be retried -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TimerStateReturns the enum constant of this type with the specified name.static TimerState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATED
State indicating that a timer has been created. -
ACTIVE
State indicating that the timer is active and will receive any timeout notifications -
CANCELED
State indicating that the timer has been cancelled and will not receive any future timeout notifications -
EXPIRED
State indicating that there aren't any scheduled timeouts for this timer -
IN_TIMEOUT
State indicating that the timer has received a timeout notification and is processing the timeout task -
RETRY_TIMEOUT
State indicating that the timeout task has to be retried
-
-
Field Details
-
CREATED_ACTIVE_IN_TIMEOUT_RETRY_TIMEOUT
-
EXPIRED_CANCELED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-