com.alachisoft.ncache.web.caching
Class LockAccessType

java.lang.Object
  extended by com.alachisoft.ncache.web.caching.LockAccessType

public final class LockAccessType
extends java.lang.Object

Specify the lock access type


Field Summary
static byte ACQUIRE
          Indicates that lock is to be acquired
static byte COMPARE_VERSION
          Optimistic locking; update the item in the cache only if the version is same
static byte DEFAULT
           
static byte DONT_ACQUIRE
          Perform the operation only if item is not locked but dont acquire the lock
static byte DONT_RELEASE
          Indicates that lock is not to be released
static byte GET_VERSION
          Optimistic locking; get the version while getting the object from the cache.
static byte IGNORE_LOCK
          Perform the operation as if there is no lock
static byte MATCH_VERSION
           
static byte PRESERVE_VERSION
           
static byte RELEASE
          Indicates that lock is to be released
 
Constructor Summary
LockAccessType()
           
 
Method Summary
static java.lang.String getAccessType(byte accessType)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACQUIRE

public static final byte ACQUIRE
Indicates that lock is to be acquired

See Also:
Constant Field Values

COMPARE_VERSION

public static final byte COMPARE_VERSION
Optimistic locking; update the item in the cache only if the version is same

See Also:
Constant Field Values

DEFAULT

public static final byte DEFAULT
See Also:
Constant Field Values

DONT_ACQUIRE

public static final byte DONT_ACQUIRE
Perform the operation only if item is not locked but dont acquire the lock

See Also:
Constant Field Values

DONT_RELEASE

public static final byte DONT_RELEASE
Indicates that lock is not to be released

See Also:
Constant Field Values

GET_VERSION

public static final byte GET_VERSION
Optimistic locking; get the version while getting the object from the cache. This version is used to put the item back to the cache

See Also:
Constant Field Values

IGNORE_LOCK

public static final byte IGNORE_LOCK
Perform the operation as if there is no lock

See Also:
Constant Field Values

MATCH_VERSION

public static final byte MATCH_VERSION
See Also:
Constant Field Values

PRESERVE_VERSION

public static final byte PRESERVE_VERSION
See Also:
Constant Field Values

RELEASE

public static final byte RELEASE
Indicates that lock is to be released

See Also:
Constant Field Values
Constructor Detail

LockAccessType

public LockAccessType()
Method Detail

getAccessType

public static java.lang.String getAccessType(byte accessType)