public enum TimerState extends Enum<TimerState>
CREATED - on createCREATED -> ACTIVE - when started without TxACTIVE -> CANCELED - on cancel() without TxACTIVE -> IN_TIMEOUT - on TimerTask runIN_TIMEOUT -> ACTIVE - on Tx commit if intervalDuration > 0IN_TIMEOUT -> EXPIRED -> on Tx commit if intervalDuration == 0IN_TIMEOUT -> RETRY_TIMEOUT -> on Tx rollbackRETRY_TIMEOUT -> ACTIVE -> on Tx commit/rollback if intervalDuration > 0RETRY_TIMEOUT -> EXPIRED -> on Tx commit/rollback if intervalDuration == 0| Enum Constant and Description |
|---|
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
|
CREATED
State indicating that a timer has been created.
|
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
|
| Modifier and Type | Field and Description |
|---|---|
static Set<TimerState> |
CREATED_ACTIVE_IN_TIMEOUT_RETRY_TIMEOUT
|
static Set<TimerState> |
EXPIRED_CANCELED
|
| Modifier and Type | Method and Description |
|---|---|
static TimerState |
valueOf(String name)
Returns 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.
|
public static final TimerState CREATED
public static final TimerState ACTIVE
public static final TimerState CANCELED
public static final TimerState EXPIRED
public static final TimerState IN_TIMEOUT
public static final TimerState RETRY_TIMEOUT
public static final Set<TimerState> CREATED_ACTIVE_IN_TIMEOUT_RETRY_TIMEOUT
public static final Set<TimerState> EXPIRED_CANCELED
public static TimerState[] values()
for (TimerState c : TimerState.values()) System.out.println(c);
public static TimerState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 JBoss by Red Hat. All rights reserved.