public enum LockGrantType extends java.lang.Enum<LockGrantType>
Enum Constant and Description |
---|
DENIED
The lock has not been granted because a conflicting lock is held by
another locker, and the lock timeout expired or a no-wait lock was
requested.
|
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.
|
UNCONTENDED
No lock is obtained, but the lock is not owned by any locker.
|
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(java.lang.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 final LockGrantType UNCONTENDED
public static LockGrantType[] values()
for (LockGrantType c : LockGrantType.values()) System.out.println(c);
public static LockGrantType 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 (c) 2004-2012 Oracle. All rights reserved.