@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, toString
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, closeQuietly, closeQuietly, notifyClosing, warnAndCloseIfNotClosed
public 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 QueueLock
public 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 QueueLock
public 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 QueueLock
Copyright © 2021. All rights reserved.