public class ThreadLocker extends BasicLocker
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, readUncommittedDefault, thread| Modifier and Type | Method and Description |
|---|---|
protected void |
checkState(boolean ignoreCalledByAbort)
Check that this txn is not used in the wrong thread.
|
static ThreadLocker |
createThreadLocker(EnvironmentImpl env) |
Locker |
newNonTxnLocker()
Returns a new non-transactional locker that shares locks with this
locker by virtue of being a ThreadLocker for the same thread.
|
boolean |
sharesLocksWith(Locker other)
Returns whether this locker can share locks with the given locker.
|
addLock, collectStats, createBasicLocker, createBasicLocker, createBasicLocker, createdNode, generateId, getAbortLsn, getTxnLocker, getWriteLockInfo, getWriteOwnerLocker, isReadCommittedIsolation, isSerializableIsolation, isTransactional, lockInternal, markDeleteAtTxnEnd, moveWriteToReadLock, nonTxnOperationEnd, operationEnd, registerCursor, releaseNonTxnLocks, removeLock, setHandleLockOwner, unRegisterCursoraddDeleteInfo, addToHandleMaps, close, demoteLock, dumpLockTable, getDefaultNoWait, getId, getLockTimeout, getTxnStartMillis, getTxnTimeout, getWaitingFor, initApiReadLock, isHandleLockTransferrable, isReadUncommittedDefault, isTimedOut, lock, nonBlockingLock, operationEnd, operationEnd, releaseLock, setLockTimeout, setOnlyAbortable, setTxnTimeout, setWaitingFor, toString, transferHandleLock, transferHandleLockToHandle, unregisterHandlepublic static ThreadLocker createThreadLocker(EnvironmentImpl env) throws DatabaseException
DatabaseExceptionprotected void checkState(boolean ignoreCalledByAbort)
throws DatabaseException
checkState in class BasicLockerDatabaseExceptionpublic Locker newNonTxnLocker() throws DatabaseException
newNonTxnLocker in class BasicLockerDatabaseExceptionpublic boolean sharesLocksWith(Locker other)
sharesLocksWith in class LockerCopyright (c) 2004,2008 Oracle. All rights reserved.