|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.LockType
public class LockType
LockType is a type safe enumeration of all lock types. Methods on LockType objects can be used to determine whether a type conflicts with another type or can be upgraded to another type.
Field Summary | |
---|---|
static LockType |
NONE
NONE is used for requesting a dirty read and does not appear in the conflict or upgrade matrices. |
static LockType |
RANGE_INSERT
|
static LockType |
RANGE_READ
|
static LockType |
RANGE_WRITE
|
static LockType |
READ
Lock types. |
static LockType |
RESTART
RESTART is used for waiting for a restart and does not appear in the conflict or upgrade matrices. |
static LockType |
WRITE
|
Method Summary | |
---|---|
(package private) boolean |
getCausesRestart()
Returns whether when this type is requested it can result in LockGrantType.RESTART. |
(package private) LockConflict |
getConflict(LockType requestedType)
Returns the LockConfict that results when this lock type is held and the given lock type is requested by another locker. |
(package private) LockUpgrade |
getUpgrade(LockType requestedType)
Returns the LockUpgrade that results when this lock type is held and the given lock type is requested by the same locker. |
boolean |
isWriteLock()
Returns true if this is a WRITE or RANGE_WRITE lock. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final LockType READ
public static final LockType WRITE
public static final LockType RANGE_READ
public static final LockType RANGE_WRITE
public static final LockType RANGE_INSERT
public static final LockType NONE
public static final LockType RESTART
Method Detail |
---|
public final boolean isWriteLock()
final boolean getCausesRestart()
LockConflict getConflict(LockType requestedType)
LockUpgrade getUpgrade(LockType requestedType)
For the returned LockUpgrade object, getIllegal will never return true because this method fires an assertion if getIllegal returns true.
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |