public static enum SharedLocalYieldingClusterLockManager.LockResult extends Enum<SharedLocalYieldingClusterLockManager.LockResult>
lock call
Enum Constant and Description |
---|
ACQUIRED_FROM_CLUSTER
Indicates the lock was acquired after requesting it from the cluster
|
ALREADY_HELD
Indicates this node already held the lock
|
NEW_LOCK
Indicates the 'newLock' param passed to
YieldingClusterLockManager#lock(Serializable, long, boolean) was
true and the local node in fact was unaware of the lock. |
Modifier and Type | Method and Description |
---|---|
static SharedLocalYieldingClusterLockManager.LockResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharedLocalYieldingClusterLockManager.LockResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SharedLocalYieldingClusterLockManager.LockResult ACQUIRED_FROM_CLUSTER
public static final SharedLocalYieldingClusterLockManager.LockResult ALREADY_HELD
public static final SharedLocalYieldingClusterLockManager.LockResult NEW_LOCK
YieldingClusterLockManager#lock(Serializable, long, boolean)
was
true
and the local node in fact was unaware of the lock. If in fact the local node was already aware of
the lock (which would generally indicate a flaw in the application using this class) NEW_LOCK will not be returned;
rather one of the other enum values will be returned.public static SharedLocalYieldingClusterLockManager.LockResult[] values()
for (SharedLocalYieldingClusterLockManager.LockResult c : SharedLocalYieldingClusterLockManager.LockResult.values()) System.out.println(c);
public static SharedLocalYieldingClusterLockManager.LockResult 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 © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.