Enum Class LockState
- All Implemented Interfaces:
Serializable
,Comparable<LockState>
,Constable
The
InfinispanLock
possible states.
Used in listener to notify when the state changes.
- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-