Enum LockState

    • Enum Constant Detail

      • WAITING

        public static final LockState WAITING
        The lock owner is in the queue waiting for the lock to be available.
      • ACQUIRED

        public static final LockState ACQUIRED
        The lock owner left the queue and it is available to acquire the lock.
      • TIMED_OUT

        public static final LockState TIMED_OUT
        The time out occurred while the lock owner waits on the queue.
      • DEADLOCKED

        public static final LockState DEADLOCKED
        The deadlock occurred with another possible lock owner and it should abort.
      • RELEASED

        public static final LockState RELEASED
        The lock owner released the lock.
    • Method Detail

      • values

        public static LockState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LockState c : LockState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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