public class AppendLock extends TableStoreWriteLock
APPEND_LOCK_KEYforceUnlockOnTimeoutWhen, 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, unlockforceUnlock, forceUnlockIfProcessIsDead, isLockedByCurrentProcess, lockedBy, performClose, toStringassertCloseable, assertCloseablesClosed, close, createdHere, disableCloseableTracing, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, isLockedByCurrentProcessclose, closeQuietly, closeQuietlypublic AppendLock(TableStore<?> tableStore, Supplier<net.openhft.chronicle.threads.TimingPauser> pauser, Long timeoutMs)
public boolean forceUnlockIfProcessIsDead()
AbstractTSQueueLockforceUnlockIfProcessIsDead in interface WriteLockforceUnlockIfProcessIsDead in class AbstractTSQueueLocktrue 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.