public static enum Session.SessionLockScope extends Enum<Session.SessionLockScope>
scope
parameter of
Session.lock(String, SessionLockScope)
.Enum Constant and Description |
---|
UNLOCK_ON_CONNECTION_LOSS
The lock will be released when the acquiring session loses its
current connection to the server.
|
UNLOCK_ON_SESSION_LOSS
The lock will be released when the acquiring session is closed.
|
Modifier and Type | Method and Description |
---|---|
static Session.SessionLockScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Session.SessionLockScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Session.SessionLockScope UNLOCK_ON_CONNECTION_LOSS
public static final Session.SessionLockScope UNLOCK_ON_SESSION_LOSS
public static Session.SessionLockScope[] values()
for (Session.SessionLockScope c : Session.SessionLockScope.values()) System.out.println(c);
public static Session.SessionLockScope 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 DiffusionData Ltd. All Rights Reserved.