public class ReadCommittedLocker extends BuddyLocker
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, lockTimeOutMillis, readUncommittedDefault, thread| Constructor and Description |
|---|
ReadCommittedLocker(EnvironmentImpl env,
Locker buddy)
Creates a ReadCommittedLocker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDeleteInfo(BIN bin,
Key deletedKey)
Forwards this method to the transactional buddy.
|
boolean |
createdNode(long nodeId)
Forwards this method to the transactional 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()
Creates a new instance of this txn for the same environment.
|
void |
registerCursor(CursorImpl cursor)
Forwards this method to the transactional buddy.
|
void |
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.
|
getTxnLocker, releaseNonTxnLocks, sharesLocksWithcheckState, collectStats, generateId, getOwnerAbortLsn, getWriteOwnerLocker, isSerializableIsolation, markDeleteAtTxnEnd, operationEnd, operationEnd, setHandleLockOwneraddToHandleMaps, demoteLock, dumpLockTable, getDefaultNoWait, getId, getLockTimeout, getTxnTimeOut, isHandleLockTransferrable, isReadUncommittedDefault, isTimedOut, lock, nonBlockingLock, operationEnd, setLockTimeout, setTxnTimeout, toString, transferHandleLockpublic ReadCommittedLocker(EnvironmentImpl env, Locker buddy) throws DatabaseException
buddy - is a transactional locker that will be used for acquiring
write locks.DatabaseExceptionpublic Locker newNonTxnLocker() throws DatabaseException
newNonTxnLocker in class BuddyLockerDatabaseExceptionpublic void releaseLock(long nodeId)
throws DatabaseException
releaseLock in class LockerDatabaseExceptionpublic boolean createdNode(long nodeId)
throws DatabaseException
createdNode in class BasicLockerDatabaseExceptionpublic long getAbortLsn(long nodeId)
throws DatabaseException
getAbortLsn in class BasicLockerDatabaseExceptionpublic WriteLockInfo getWriteLockInfo(long nodeId) throws DatabaseException
getWriteLockInfo in class BasicLockerDatabaseExceptionpublic void addDeleteInfo(BIN bin, Key deletedKey) throws DatabaseException
addDeleteInfo in class LockerDatabaseExceptionpublic void registerCursor(CursorImpl cursor) throws DatabaseException
registerCursor in class BasicLockerDatabaseExceptionpublic void unRegisterCursor(CursorImpl cursor) throws DatabaseException
unRegisterCursor in class BasicLockerDatabaseExceptionpublic boolean isTransactional()
isTransactional in class BasicLockerpublic boolean isReadCommittedIsolation()
isReadCommittedIsolation in class BasicLocker