Enum Class RemoteLockState
- All Implemented Interfaces:
Serializable,Comparable<RemoteLockState>,Constable
Server-side state of a remote lock record.
Distinct from the client-facing
RemoteAcquireState.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResource is locked; client must send periodic heartbeats.Acquire failed (e.g.Waiting to acquire the resource (resource is currently busy).Resource was already locked and skipIfLocked=true was requested.Heartbeat timed out; resource is held pending admin review. -
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteLockStateReturns the enum constant of this class with the specified name.static RemoteLockState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUEUED
Waiting to acquire the resource (resource is currently busy). -
ACQUIRED
Resource is locked; client must send periodic heartbeats. -
SKIPPED
Resource was already locked and skipIfLocked=true was requested. -
FAILED
Acquire failed (e.g. resource not found). -
STALE
Heartbeat timed out; resource is held pending admin review.
-
-
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
-