public enum UpdateLockingMode extends Enum<UpdateLockingMode>
Enum Constant and Description |
---|
None
Indicates that the StateServer should not release an existing pessimistic lock if one is currently being held.
|
UnlockAfterUpdate
If the StateServer is holding a pessimistic lock for the corresponding object then the lock will be released when the Update operation completes.
|
UpdateIfSameVersion
(Optimistic locking.) Indicates that the StateServer should only perform an update if the version version of the object sent by the object
matches the version currently stored in the StateServer.
|
Modifier and Type | Method and Description |
---|---|
static UpdateLockingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateLockingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateLockingMode None
public static final UpdateLockingMode UnlockAfterUpdate
public static final UpdateLockingMode UpdateIfSameVersion
OptimisticConcurrencyVersionHolder
interface.public static UpdateLockingMode[] values()
for (UpdateLockingMode c : UpdateLockingMode.values()) System.out.println(c);
public static UpdateLockingMode 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 (C) 2007-2014 ScaleOut Software, Inc.