Enum Class OpenLockException.LockErrorType
java.lang.Object
java.lang.Enum<OpenLockException.LockErrorType>
cloud.opencode.base.lock.exception.OpenLockException.LockErrorType
- All Implemented Interfaces:
Serializable, Comparable<OpenLockException.LockErrorType>, Constable
- Enclosing class:
OpenLockException
Lock Error Type Enumeration
锁错误类型枚举
Classifies different types of lock errors for handling.
对不同类型的锁错误进行分类以便处理。
- Since:
- JDK 25, opencode-base-lock V1.0.0
- 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 TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OpenLockException.LockErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL
General error - 一般错误 -
TIMEOUT
Timeout error - 超时 -
ACQUIRE
Acquire failed - 获取失败 -
RELEASE
Release failed - 释放失败 -
EXPIRED
Lock expired - 锁已过期 -
NOT_HELD
Lock not held - 未持有锁 -
DEADLOCK
Deadlock detected - 死锁 -
INTERRUPTED
Interrupted - 被中断
-
-
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
-