|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.LockStrategy
public final class LockStrategy
LockStrategy provides an enumerated type idiom for use on the
BackingMap.setLockStrategy(LockStrategy)
method.
It determines whether or not a lock manager is needed for
a BackingMap and if so, whether to use a optimistic or
pessimistic locking strategy.
BackingMap.setLockStrategy(LockStrategy)
Field Summary | |
---|---|
static LockStrategy |
NONE
NONE indicates internal LockManager use is not needed since concurrency control is provided outside of ObjectGrid either by a persistence manager using objectgrid as a side cache, the application, or by a Loader plugin (for example, uses database locks to control concurrency). |
static LockStrategy |
OPTIMISTIC
OPTIMISTIC is typically used for a map that does not have a Loader plugin, the map is read mostly, and locking is neither provided by a persistence manager using ObjectGrid as a side cache or by the application itself. |
static LockStrategy |
PESSIMISTIC
PESSIMISTIC is typically used for a map that does not have a Loader plugin and locking is neither provided by a persistence manager using ObjectGrid as a side cache, by a Loader plugin, or by the application itself. |
Method Summary | |
---|---|
String |
toString()
Returns a string representation of the LockStrategy . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LockStrategy NONE
public static final LockStrategy OPTIMISTIC
public static final LockStrategy PESSIMISTIC
Method Detail |
---|
public String toString()
LockStrategy
.
toString
in class Object
LockStrategy
.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |