Class AtomicStats
java.lang.Object
org.apache.curator.framework.recipes.atomic.AtomicStats
Debugging stats about operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the time spent trying the operation with optimistic locksintReturns the number of optimistic locks used to perform the operationintReturns the number of mutex locks used to perform the operationlongReturns the time spent trying the operation with mutex locks
-
Constructor Details
-
AtomicStats
public AtomicStats()
-
-
Method Details
-
getOptimisticTries
public int getOptimisticTries()Returns the number of optimistic locks used to perform the operation- Returns:
- qty
-
getPromotedLockTries
public int getPromotedLockTries()Returns the number of mutex locks used to perform the operation- Returns:
- qty
-
getOptimisticTimeMs
public long getOptimisticTimeMs()Returns the time spent trying the operation with optimistic locks- Returns:
- time in ms
-
getPromotedTimeMs
public long getPromotedTimeMs()Returns the time spent trying the operation with mutex locks- Returns:
- time in ms
-