|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.LockUpgrade
class LockUpgrade
LockUpgrade is a type safe enumeration of lock upgrade types. Methods on LockUpgrade objects are used to determine whether an upgrade is needed and, if so, how it should be handled.
Field Summary | |
---|---|
(package private) static LockUpgrade |
EXISTING
|
(package private) static LockUpgrade |
ILLEGAL
|
(package private) static LockUpgrade |
RANGE_READ_IMMED
|
(package private) static LockUpgrade |
RANGE_WRITE_IMMED
|
(package private) static LockUpgrade |
RANGE_WRITE_PROMOTE
|
(package private) static LockUpgrade |
WRITE_PROMOTE
|
Method Summary | |
---|---|
(package private) boolean |
getIllegal()
This method is called to determine whether the upgrade is illegal. |
(package private) boolean |
getPromotion()
This method is called when getUpgrade returns non-null to determine whether the upgrade is a true promotion or can be granted immediately. |
(package private) LockType |
getUpgrade()
This method is called first to determine whether an upgrade to a new lock type is needed, and what the new lock type should be. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final LockUpgrade ILLEGAL
static final LockUpgrade EXISTING
static final LockUpgrade WRITE_PROMOTE
static final LockUpgrade RANGE_READ_IMMED
static final LockUpgrade RANGE_WRITE_IMMED
static final LockUpgrade RANGE_WRITE_PROMOTE
Method Detail |
---|
boolean getIllegal()
LockType getUpgrade()
boolean getPromotion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |