@Deprecated public class TSQueueLock extends AbstractTSQueueLock implements QueueLock
dontRecoverLockTimeout, lock, path, pauser, PID, tableStore, UNLOCKED| Constructor and Description |
|---|
TSQueueLock(TableStore<?> tableStore,
Supplier<net.openhft.chronicle.threads.TimingPauser> pauser,
long timeoutMs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLock()
Deprecated.
Stores current TID and PID to table store, and any other thread trying to acquire lock will wait for
chronicle.queue.lock.timeoutMS millis (default is 30000) for the lock to be released, and if it is not
able to lock, *overrides the lock*. |
boolean |
isLocked()
Deprecated.
Is this lock locked?
|
void |
quietUnlock()
Deprecated.
unlike
unlock() this method will not WARN if already unlocked |
void |
unlock()
Deprecated.
Checks if the lock is held by current thread and if so, releases it, removing entry from TableStore and clearing ThreadLocal state, allowing
anyone to proceed with
ChronicleQueue.acquireAppender(). |
void |
waitForLock()
Deprecated.
checks if current thread holds lock.
|
forceUnlock, forceUnlockIfProcessIsDead, isLockedByCurrentProcess, lockedBy, performClose, threadSafetyCheck, toStringassertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, closeQuietly, closeQuietly, notifyClosing, warnAndCloseIfNotClosedpublic TSQueueLock(TableStore<?> tableStore, Supplier<net.openhft.chronicle.threads.TimingPauser> pauser, long timeoutMs)
public void acquireLock()
chronicle.queue.lock.timeoutMS millis (default is 30000) for the lock to be released, and if it is not
able to lock, *overrides the lock*.acquireLock in interface QueueLockpublic void waitForLock()
chronicle.queue.lock.timeoutMS millis for the lock to be
released, and if it is not after timeout, forcibly unlocks and continues.waitForLock in interface QueueLockpublic void unlock()
ChronicleQueue.acquireAppender(). If it is already unlocked, no action is taken.public void quietUnlock()
unlock() this method will not WARN if already unlockedquietUnlock in interface QueueLockCopyright © 2022. All rights reserved.