Enum Class LockEvent.EventType

java.lang.Object
java.lang.Enum<LockEvent.EventType>
cloud.opencode.base.lock.event.LockEvent.EventType
All Implemented Interfaces:
Serializable, Comparable<LockEvent.EventType>, Constable
Enclosing class:
LockEvent

public static enum LockEvent.EventType extends Enum<LockEvent.EventType>
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
  • Enum Constant Details

    • ACQUIRED

      public static final LockEvent.EventType ACQUIRED
      Lock successfully acquired | 锁获取成功
    • RELEASED

      public static final LockEvent.EventType RELEASED
      Lock released | 锁释放
    • TIMEOUT

      public static final LockEvent.EventType TIMEOUT
      Lock acquisition timed out | 锁获取超时
    • ERROR

      public static final LockEvent.EventType ERROR
      Lock operation error | 锁操作错误
  • Method Details

    • values

      public static LockEvent.EventType[] 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

      public static LockEvent.EventType valueOf(String name)
      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 name
      NullPointerException - if the argument is null