public static enum SessionOwnershipSupport.LockResult extends Enum<SessionOwnershipSupport.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
#lock(String, boolean) was true and the local node in
fact was unaware of the lock. |
UNSUPPORTED
Indicates
#getSupportsSessionOwnership() will return false |
Modifier and Type | Method and Description |
---|---|
static SessionOwnershipSupport.LockResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SessionOwnershipSupport.LockResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SessionOwnershipSupport.LockResult ACQUIRED_FROM_CLUSTER
public static final SessionOwnershipSupport.LockResult ALREADY_HELD
public static final SessionOwnershipSupport.LockResult NEW_LOCK
#lock(String, 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 final SessionOwnershipSupport.LockResult UNSUPPORTED
#getSupportsSessionOwnership()
will return false
public static SessionOwnershipSupport.LockResult[] values()
for (SessionOwnershipSupport.LockResult c : SessionOwnershipSupport.LockResult.values()) System.out.println(c);
public static SessionOwnershipSupport.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.