private static enum NonstopSync.LockOperationType extends java.lang.Enum<NonstopSync.LockOperationType>
Modifier and Type | Method and Description |
---|---|
abstract boolean |
performOperation(ExplicitLockingContext appThreadLockContext,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
java.lang.Object key,
long timeout,
LockType type,
NonstopConfiguration config) |
abstract void |
rollback(ExplicitLockingContext appThreadLockContext,
NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
java.lang.Object key,
LockType type,
boolean success) |
static NonstopSync.LockOperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NonstopSync.LockOperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NonstopSync.LockOperationType TRY_LOCK
public static final NonstopSync.LockOperationType UNLOCK
public static NonstopSync.LockOperationType[] values()
for (NonstopSync.LockOperationType c : NonstopSync.LockOperationType.values()) System.out.println(c);
public static NonstopSync.LockOperationType 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 nullpublic abstract boolean performOperation(ExplicitLockingContext appThreadLockContext, NonstopActiveDelegateHolder nonstopActiveDelegateHolder, java.lang.Object key, long timeout, LockType type, NonstopConfiguration config) throws java.lang.Exception
java.lang.Exception
public abstract void rollback(ExplicitLockingContext appThreadLockContext, NonstopActiveDelegateHolder nonstopActiveDelegateHolder, java.lang.Object key, LockType type, boolean success)