Enum LockState
- All Implemented Interfaces:
Serializable
,Comparable<LockState>
The
InfinispanLock
possible states.
Used in listener to notify when the state changes.
- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe lock owner left the queue and it is available to acquire the lock.The deadlock occurred with another possible lock owner and it should abort.The lock owner released the lock.The time out occurred while the lock owner waits on the queue.The lock owner is in the queue waiting for the lock to be available. -
Method Summary
-
Enum Constant Details
-
WAITING
The lock owner is in the queue waiting for the lock to be available. -
ACQUIRED
The lock owner left the queue and it is available to acquire the lock. -
TIMED_OUT
The time out occurred while the lock owner waits on the queue. -
DEADLOCKED
The deadlock occurred with another possible lock owner and it should abort. -
RELEASED
The lock owner released the lock.
-
-
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
-