Enum Class LockEvent.EventType
- All Implemented Interfaces:
Serializable, Comparable<LockEvent.EventType>, Constable
- Enclosing class:
LockEvent
Lock Event Type Enumeration
锁事件类型枚举
Defines the possible lifecycle events for a lock.
定义锁的可能生命周期事件。
- Since:
- JDK 25, opencode-base-lock V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LockEvent.EventTypeReturns the enum constant of this class with the specified name.static LockEvent.EventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACQUIRED
Lock successfully acquired | 锁获取成功 -
RELEASED
Lock released | 锁释放 -
TIMEOUT
Lock acquisition timed out | 锁获取超时 -
ERROR
Lock operation error | 锁操作错误
-
-
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
-