public class HandleLocker extends BasicLocker
afterWaiterHook, envImpl, id, lockManager, thread| Modifier | Constructor and Description |
|---|---|
protected |
HandleLocker(EnvironmentImpl env,
Locker buddy)
Creates a HandleLocker.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowReleaseLockAfterLsnChange()
Because handle lockers are legitimately very long lived, it is important
that lockAfterLsnChange releases the locks on the old LSN, to avoid a
steady accumulation of locks in a HandleLocker
|
static HandleLocker |
createHandleLocker(EnvironmentImpl env,
Locker buddy) |
boolean |
sharesLocksWith(Locker other)
Returns whether this locker can share locks with the given locker.
|
addDbCleanup, addLock, checkState, collectStats, createBasicLocker, createBasicLocker, generateId, getTxnLocker, getWriteLockInfo, getWriteOwnerLocker, isReadCommittedIsolation, isSerializableIsolation, isTransactional, lockingRequired, lockInternal, newNonTxnLocker, nonTxnOperationEnd, operationEnd, preLogWithoutLock, registerCursor, releaseNonTxnLocks, unRegisterCursoraddDeleteInfo, addOpenedDatabase, checkPreempted, demoteLock, disallowReplicaWrite, dumpLockTable, getDefaultNoWait, getEnvironment, getId, getImportunate, getInitialLockTimeout, getLockTimeout, getPreemptable, getTransaction, getTxnTimeout, isLocalWrite, isReadOnly, isReadUncommittedDefault, isReplicated, isRolledBack, isTimedOut, isValid, lock, lockAfterLsnChange, nonBlockingLock, openCursorHook, operationEnd, operationEnd, releaseLock, setClosingLocker, setDefaultNoWait, setImportunate, setLockTimeout, setOnlyAbortable, setPreemptable, setPreempted, setTxnTimeout, toStringprotected HandleLocker(EnvironmentImpl env, Locker buddy)
public static HandleLocker createHandleLocker(EnvironmentImpl env, Locker buddy) throws DatabaseException
DatabaseExceptionpublic boolean sharesLocksWith(Locker other)
sharesLocksWith in class Lockerpublic boolean allowReleaseLockAfterLsnChange()
allowReleaseLockAfterLsnChange in class LockerallowReleaseLockAfterLsnChange()Copyright © 2024. All rights reserved.