- All Implemented Interfaces:
Serializable,Comparable<AcquireReason>,Constable
Which step of the slot choice (05-machine-lease.md ยง2.1) gave the slot; the store reports it, for observation only.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe owner, same key and incarnation, already held the slot: a retried acquire.The lowest free slot.The free preferred slot.The free slot the owner key held last. -
Method Summary
Modifier and TypeMethodDescriptionlabel()The name the listener events use (idempotent,preferred,sticky,lowest).static AcquireReasonReturns the enum constant of this class with the specified name.static AcquireReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDEMPOTENT
The owner, same key and incarnation, already held the slot: a retried acquire. -
PREFERRED
The free preferred slot. -
STICKY
The free slot the owner key held last. -
LOWEST
The lowest free slot.
-
-
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
-
label
The name the listener events use (idempotent,preferred,sticky,lowest).- Returns:
- the lower case name
-