|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.txn.Locker
com.sleepycat.je.txn.BasicLocker
com.sleepycat.je.txn.BuddyLocker
com.sleepycat.je.txn.ReadCommittedLocker
public class ReadCommittedLocker
Extends BuddyLocker to acquire write locks using the buddy locker (the transaction locker). This is used for ReadCommitted (Degree 2) isolation.
Field Summary |
---|
Fields inherited from class com.sleepycat.je.txn.Locker |
---|
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, readUncommittedDefault, thread |
Method Summary | |
---|---|
void |
addDeleteInfo(BIN bin,
Key deletedKey)
Forwards this method to the transactional buddy. |
boolean |
createdNode(long nodeId)
Forwards this method to the transactional buddy. |
static ReadCommittedLocker |
createReadCommittedLocker(EnvironmentImpl env,
Locker buddy)
|
long |
getAbortLsn(long nodeId)
Forwards this method to the transactional buddy. |
WriteLockInfo |
getWriteLockInfo(long nodeId)
|
boolean |
isReadCommittedIsolation()
Is always read-committed isolation. |
boolean |
isTransactional()
Is always transactional because the buddy locker is transactional. |
Locker |
newNonTxnLocker()
Returns a new ReadCommittedLocker that shares locks with this locker by virtue of both lockers only holding READ locks. |
void |
registerCursor(CursorImpl cursor)
Forwards this method to the transactional buddy. |
boolean |
releaseLock(long nodeId)
Releases the lock from this locker, or if not owned by this locker then releases it from the buddy locker. |
void |
unRegisterCursor(CursorImpl cursor)
Forwards this method to the transactional buddy. |
Methods inherited from class com.sleepycat.je.txn.BuddyLocker |
---|
createBuddyLocker, getLockTimeout, getTxnLocker, getTxnTimeout, isTimedOut, releaseNonTxnLocks, setLockTimeout, setTxnTimeout, sharesLocksWith |
Methods inherited from class com.sleepycat.je.txn.BasicLocker |
---|
addLock, checkState, collectStats, createBasicLocker, createBasicLocker, createBasicLocker, generateId, getWriteOwnerLocker, isSerializableIsolation, markDeleteAtTxnEnd, nonTxnOperationEnd, operationEnd, setHandleLockOwner |
Methods inherited from class com.sleepycat.je.txn.Locker |
---|
addToHandleMaps, demoteLock, dumpLockTable, getDefaultNoWait, getId, initApiReadLock, isHandleLockTransferrable, isReadUncommittedDefault, lock, nonBlockingLock, operationEnd, operationEnd, setOnlyAbortable, toString, transferHandleLock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static ReadCommittedLocker createReadCommittedLocker(EnvironmentImpl env, Locker buddy) throws DatabaseException
DatabaseException
public Locker newNonTxnLocker() throws DatabaseException
newNonTxnLocker
in class BasicLocker
DatabaseException
public boolean releaseLock(long nodeId) throws DatabaseException
releaseLock
in class Locker
DatabaseException
public boolean createdNode(long nodeId) throws DatabaseException
createdNode
in class BasicLocker
DatabaseException
public long getAbortLsn(long nodeId) throws DatabaseException
getAbortLsn
in class BasicLocker
DatabaseException
public WriteLockInfo getWriteLockInfo(long nodeId) throws DatabaseException
getWriteLockInfo
in class BasicLocker
DatabaseException
public void addDeleteInfo(BIN bin, Key deletedKey) throws DatabaseException
addDeleteInfo
in class Locker
DatabaseException
public void registerCursor(CursorImpl cursor) throws DatabaseException
registerCursor
in class BasicLocker
DatabaseException
public void unRegisterCursor(CursorImpl cursor) throws DatabaseException
unRegisterCursor
in class BasicLocker
DatabaseException
public boolean isTransactional()
isTransactional
in class BasicLocker
public boolean isReadCommittedIsolation()
isReadCommittedIsolation
in class BasicLocker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |