public enum LockGrantType extends Enum<LockGrantType>
| Enum Constant and Description |
|---|
DENIED
The lock request was a non-blocking one and the lock has not been
granted because a conflicting lock is held by another locker.
|
EXISTING
The locker already owns the requested lock, and no new lock or upgrade
is needed.
|
NEW
The locker did not previously own a lock on the node, and a new lock has
been granted.
|
NONE_NEEDED
No lock has been granted because LockType.NONE was requested.
|
PROMOTION
The locker previously owned a read lock on the node, and a write lock
has been granted by upgrading the lock from read to write.
|
WAIT_NEW
The locker did not previously own a lock on the node, and must wait for
a new lock because a conflicting lock is held by another locker.
|
WAIT_PROMOTION
The locker previously owned a read lock on the node, and must wait for a
lock upgrade because a conflicting lock is held by another locker.
|
WAIT_RESTART
The lock has not been granted because a conflicting lock is held by
another locker, and a RangeRestartException must be thrown.
|
| Modifier and Type | Method and Description |
|---|---|
static LockGrantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockGrantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockGrantType NEW
public static final LockGrantType WAIT_NEW
public static final LockGrantType PROMOTION
public static final LockGrantType WAIT_PROMOTION
public static final LockGrantType EXISTING
public static final LockGrantType DENIED
public static final LockGrantType WAIT_RESTART
public static final LockGrantType NONE_NEEDED
public static LockGrantType[] values()
for (LockGrantType c : LockGrantType.values()) System.out.println(c);
public static LockGrantType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.