public enum LockState extends Enum<LockState>
InfinispanLock
possible states.
Used in listener to notify when the state changes.
Enum Constant and Description |
---|
ACQUIRED
The lock owner left the queue and it is available to acquire the lock.
|
DEADLOCKED
The deadlock occurred with another possible lock owner and it should abort.
|
RELEASED
The lock owner released the lock.
|
TIMED_OUT
The time out occurred while the lock owner waits on the queue.
|
WAITING
The lock owner is in the queue waiting for the lock to be available.
|
Modifier and Type | Method and Description |
---|---|
static LockState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockState WAITING
public static final LockState ACQUIRED
public static final LockState TIMED_OUT
public static final LockState DEADLOCKED
public static final LockState RELEASED
public static LockState[] values()
for (LockState c : LockState.values()) System.out.println(c);
public static LockState 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 © 2021 JBoss by Red Hat. All rights reserved.