|
|||||||||
| 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.ThreadLocker
public class ThreadLocker
Extends BasicLocker to share locks among all lockers for the same thread. This locker is used when a JE entry point is called with a null transaction parameter.
| Field Summary |
|---|
| Fields inherited from class com.sleepycat.je.txn.Locker |
|---|
defaultNoWait, deleteInfo, envImpl, handleLockToHandleMap, handleToHandleLockMap, id, lockManager, lockTimeOutMillis, readUncommittedDefault, thread |
| Constructor Summary | |
|---|---|
ThreadLocker(EnvironmentImpl env)
Creates a ThreadLocker. |
|
| Method Summary | |
|---|---|
protected void |
checkState(boolean ignoreCalledByAbort)
Check that this txn is not used in the wrong thread. |
Locker |
newNonTxnLocker()
Creates a new instance of this txn for the same environment. |
boolean |
sharesLocksWith(Locker other)
Returns whether this locker can share locks with the given locker. |
| Methods inherited from class com.sleepycat.je.txn.BasicLocker |
|---|
addLock, collectStats, createdNode, generateId, getAbortLsn, getOwnerAbortLsn, getTxnLocker, getWriteLockInfo, getWriteOwnerLocker, isReadCommittedIsolation, isSerializableIsolation, isTransactional, lockInternal, markDeleteAtTxnEnd, moveWriteToReadLock, operationEnd, operationEnd, registerCursor, releaseNonTxnLocks, removeLock, setHandleLockOwner, unRegisterCursor |
| Methods inherited from class com.sleepycat.je.txn.Locker |
|---|
addDeleteInfo, addToHandleMaps, demoteLock, dumpLockTable, getDefaultNoWait, getId, getLockTimeout, getTxnStartMillis, getTxnTimeOut, getWaitingFor, isHandleLockTransferrable, isReadUncommittedDefault, isTimedOut, lock, nonBlockingLock, operationEnd, releaseLock, setLockTimeout, setOnlyAbortable, setTxnTimeout, setWaitingFor, toString, transferHandleLock, transferHandleLockToHandle, unregisterHandle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocker(EnvironmentImpl env)
throws DatabaseException
DatabaseException| Method Detail |
|---|
protected void checkState(boolean ignoreCalledByAbort)
throws DatabaseException
checkState in class BasicLockerDatabaseException
public Locker newNonTxnLocker()
throws DatabaseException
newNonTxnLocker in class BasicLockerDatabaseExceptionpublic boolean sharesLocksWith(Locker other)
sharesLocksWith in class Locker
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||