| java.lang.Object com.sleepycat.je.txn.Locker com.sleepycat.je.txn.BasicLocker com.sleepycat.je.txn.BuddyLocker com.sleepycat.je.txn.ReadCommittedLocker
ReadCommittedLocker | public class ReadCommittedLocker extends BuddyLocker (Code) | | Extends BuddyLocker to acquire write locks using the buddy locker (the
transaction locker). This is used for ReadCommitted (Degree 2) isolation.
|
ReadCommittedLocker | public ReadCommittedLocker(EnvironmentImpl env, Locker buddy) throws DatabaseException(Code) | | Creates a ReadCommittedLocker.
Parameters: buddy - is a transactional locker that will be used for acquiringwrite locks. |
addDeleteInfo | public void addDeleteInfo(BIN bin, Key deletedKey) throws DatabaseException(Code) | | Forwards this method to the transactional buddy. The buddy handles
write locks and therefore handles delete information.
|
createdNode | public boolean createdNode(long nodeId) throws DatabaseException(Code) | | Forwards this method to the transactional buddy. Since the buddy
handles write locks, it knows whether this transaction created the node.
|
getAbortLsn | public long getAbortLsn(long nodeId) throws DatabaseException(Code) | | Forwards this method to the transactional buddy. The buddy handles
write locks and therefore handles abort information.
|
isReadCommittedIsolation | public boolean isReadCommittedIsolation()(Code) | | Is always read-committed isolation.
|
isTransactional | public boolean isTransactional()(Code) | | Is always transactional because the buddy locker is transactional.
|
newNonTxnLocker | public Locker newNonTxnLocker() throws DatabaseException(Code) | | Creates a new instance of this txn for the same environment. No
transactional locks are held by this object, so no locks are retained.
newNonTxnLocker is also called for the BuddyLocker.
|
registerCursor | public void registerCursor(CursorImpl cursor) throws DatabaseException(Code) | | Forwards this method to the transactional buddy. The buddy Txn tracks
cursors.
|
releaseLock | public void releaseLock(long nodeId) throws DatabaseException(Code) | | Releases the lock from this locker, or if not owned by this locker then
releases it from the buddy locker.
|
unRegisterCursor | public void unRegisterCursor(CursorImpl cursor) throws DatabaseException(Code) | | Forwards this method to the transactional buddy. The buddy Txn tracks
cursors.
|
Methods inherited from com.sleepycat.je.txn.Locker | public void addDeleteInfo(BIN bin, Key deletedKey) throws DatabaseException(Code)(Java Doc) abstract void addLock(Long nodeId, LockType type, LockGrantType grantStatus) throws DatabaseException(Code)(Java Doc) public void addToHandleMaps(Long handleLockId, Database databaseHandle)(Code)(Java Doc) abstract protected void checkState(boolean ignoreCalledByAbort) throws DatabaseException(Code)(Java Doc) abstract public LockStats collectStats(LockStats stats) throws DatabaseException(Code)(Java Doc) abstract public boolean createdNode(long nodeId) throws DatabaseException(Code)(Java Doc) public void demoteLock(long nodeId) throws DatabaseException(Code)(Java Doc) public void dumpLockTable() throws DatabaseException(Code)(Java Doc) abstract protected long generateId(TxnManager txnManager)(Code)(Java Doc) abstract public long getAbortLsn(long nodeId) throws DatabaseException(Code)(Java Doc) public boolean getDefaultNoWait()(Code)(Java Doc) public long getId()(Code)(Java Doc) public synchronized long getLockTimeout()(Code)(Java Doc) abstract public Txn getTxnLocker()(Code)(Java Doc) long getTxnStartMillis()(Code)(Java Doc) public long getTxnTimeOut()(Code)(Java Doc) Lock getWaitingFor()(Code)(Java Doc) abstract public WriteLockInfo getWriteLockInfo(long nodeId) throws DatabaseException(Code)(Java Doc) public boolean isHandleLockTransferrable()(Code)(Java Doc) abstract public boolean isReadCommittedIsolation()(Code)(Java Doc) public boolean isReadUncommittedDefault()(Code)(Java Doc) abstract public boolean isSerializableIsolation()(Code)(Java Doc) public boolean isTimedOut() throws DatabaseException(Code)(Java Doc) abstract public boolean isTransactional()(Code)(Java Doc) public LockResult lock(long nodeId, LockType lockType, boolean noWait, DatabaseImpl database) throws LockNotGrantedException, DeadlockException, DatabaseException(Code)(Java Doc) abstract LockResult lockInternal(long nodeId, LockType lockType, boolean noWait, DatabaseImpl database) throws DeadlockException, DatabaseException(Code)(Java Doc) abstract public void markDeleteAtTxnEnd(DatabaseImpl db, boolean deleteAtCommit) throws DatabaseException(Code)(Java Doc) abstract void moveWriteToReadLock(long nodeId, Lock lock)(Code)(Java Doc) abstract public Locker newNonTxnLocker() throws DatabaseException(Code)(Java Doc) public LockResult nonBlockingLock(long nodeId, LockType lockType, DatabaseImpl database) throws DatabaseException(Code)(Java Doc) abstract public void operationEnd() throws DatabaseException(Code)(Java Doc) abstract public void operationEnd(boolean operationOK) throws DatabaseException(Code)(Java Doc) public void operationEnd(OperationStatus status) throws DatabaseException(Code)(Java Doc) abstract public void registerCursor(CursorImpl cursor) throws DatabaseException(Code)(Java Doc) public void releaseLock(long nodeId) throws DatabaseException(Code)(Java Doc) abstract public void releaseNonTxnLocks() throws DatabaseException(Code)(Java Doc) abstract void removeLock(long nodeId) throws DatabaseException(Code)(Java Doc) abstract public void setHandleLockOwner(boolean operationOK, Database dbHandle, boolean dbIsClosing) throws DatabaseException(Code)(Java Doc) public synchronized void setLockTimeout(long timeout)(Code)(Java Doc) void setOnlyAbortable()(Code)(Java Doc) public synchronized void setTxnTimeout(long timeout)(Code)(Java Doc) void setWaitingFor(Lock lock)(Code)(Java Doc) public boolean sharesLocksWith(Locker other)(Code)(Java Doc) public String toString()(Code)(Java Doc) public void transferHandleLock(Database dbHandle, Locker destLocker, boolean demoteToRead) throws DatabaseException(Code)(Java Doc) void transferHandleLockToHandle(Database dbHandle) throws DatabaseException(Code)(Java Doc) abstract public void unRegisterCursor(CursorImpl cursor) throws DatabaseException(Code)(Java Doc) void unregisterHandle(Database dbHandle)(Code)(Java Doc)
|
|
|