public class AppendLock extends TableStoreWriteLock
APPEND_LOCK_KEY
forceUnlockOnTimeoutWhen, lock, path, pauser, PID, tableStore, UNLOCK_MAIN_MSG, UNLOCKED, UNLOCKING_FORCIBLY_MSG
Constructor and Description |
---|
AppendLock(TableStore<?> tableStore,
Supplier<net.openhft.chronicle.threads.TimingPauser> pauser,
Long timeoutMs) |
Modifier and Type | Method and Description |
---|---|
boolean |
forceUnlockIfProcessIsDead()
forces an unlock only if the process that currently holds the table store lock is no-longer running
|
forceUnlock, forceUnlockQuietly, getLockedBy, lock, locked, unlock
forceUnlock, forceUnlockIfProcessIsDead, isLockedByCurrentProcess, lockedBy, performClose, toString
assertCloseable, assertCloseablesClosed, close, createdHere, disableCloseableTracing, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, isLockedByCurrentProcess
public AppendLock(TableStore<?> tableStore, Supplier<net.openhft.chronicle.threads.TimingPauser> pauser, Long timeoutMs)
public boolean forceUnlockIfProcessIsDead()
AbstractTSQueueLock
forceUnlockIfProcessIsDead
in interface WriteLock
forceUnlockIfProcessIsDead
in class AbstractTSQueueLock
true
if the lock was already unlocked, It will not release the lock if it is held by this process
or the process that was holding the lock is no longer running (and we were able to unlock).
Otherwise false
is returned if the lock is held by this process or another live process.Copyright © 2024. All rights reserved.