java.io.Serializable
, java.lang.Comparable<LockRequest.LockStatus>
public static enum LockRequest.LockStatus extends java.lang.Enum<LockRequest.LockStatus>
Enum Constant | Description |
---|---|
locked |
The lock has been acquired successfully (lock operation).
|
lockedAfterTimeout |
The lock has been acquired successfully, but after a lock timed out for a better matching
ManagedObject
(lock operation). |
lockTimedOut |
The lock could not be acquired within the timeoutMillis.
|
notRequired |
Indicates that no locking was required based on the active
MOLockStrategy . |
unlocked |
The lock has been released successfully (unlock operation).
|
Modifier and Type | Method | Description |
---|---|---|
static LockRequest.LockStatus |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static LockRequest.LockStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockRequest.LockStatus notRequired
MOLockStrategy
.public static final LockRequest.LockStatus locked
public static final LockRequest.LockStatus lockedAfterTimeout
ManagedObject
(lock operation).public static final LockRequest.LockStatus unlocked
public static final LockRequest.LockStatus lockTimedOut
public static LockRequest.LockStatus[] values()
for (LockRequest.LockStatus c : LockRequest.LockStatus.values()) System.out.println(c);
public static LockRequest.LockStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2018 SNMP4J.org. All rights reserved.