Package com.yahoo.vespa.curator.stats
Enum LockAttempt.LockState
- java.lang.Object
-
- java.lang.Enum<LockAttempt.LockState>
-
- com.yahoo.vespa.curator.stats.LockAttempt.LockState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LockAttempt.LockState>
- Enclosing class:
- LockAttempt
public static enum LockAttempt.LockState extends java.lang.Enum<LockAttempt.LockState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACQUIRE_FAILED
ACQUIRED
ACQUIRING
RELEASED
RELEASED_WITH_ERROR
TIMED_OUT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTerminal()
static LockAttempt.LockState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LockAttempt.LockState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACQUIRING
public static final LockAttempt.LockState ACQUIRING
-
ACQUIRE_FAILED
public static final LockAttempt.LockState ACQUIRE_FAILED
-
TIMED_OUT
public static final LockAttempt.LockState TIMED_OUT
-
ACQUIRED
public static final LockAttempt.LockState ACQUIRED
-
RELEASED
public static final LockAttempt.LockState RELEASED
-
RELEASED_WITH_ERROR
public static final LockAttempt.LockState RELEASED_WITH_ERROR
-
-
Method Detail
-
values
public static LockAttempt.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 (LockAttempt.LockState c : LockAttempt.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 LockAttempt.LockState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isTerminal
public boolean isTerminal()
-
-