Package com.yahoo.vespa.curator.stats
Class LockAttempt
java.lang.Object
com.yahoo.vespa.curator.stats.LockAttempt
Information about a lock.
Should be mutated by a single thread, except fillStackTrace()
which can be
invoked by any threads. Other threads may see an inconsistent state of this instance.
- Author:
- hakon
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Fill in the stack trace starting at the caller's stack frame.Get time from just before trying to acquire lock to the time the terminal state was reached, or ZERO.static LockAttempt
invokingAcquire
(ThreadLockStats threadLockStats, String lockPath, Duration timeout, LockMetrics lockMetrics, boolean reentry) boolean
boolean
-
Method Details
-
invokingAcquire
public static LockAttempt invokingAcquire(ThreadLockStats threadLockStats, String lockPath, Duration timeout, LockMetrics lockMetrics, boolean reentry) -
getThreadName
-
getLockPath
-
getTimeAcquiredWasInvoked
-
getAcquireTimeout
-
isReentry
public boolean isReentry() -
getLockState
-
getTimeLockWasAcquired
-
isAcquiring
public boolean isAcquiring() -
getTimeAcquireEndedOrNow
-
getTimeTerminalStateWasReached
-
getStackTrace
-
getNestedLockAttempts
-
getDurationOfAcquire
-
getDurationWithLock
-
getDuration
-
getStableTotalDuration
Get time from just before trying to acquire lock to the time the terminal state was reached, or ZERO. -
fillStackTrace
public void fillStackTrace()Fill in the stack trace starting at the caller's stack frame.
-