Class AtomicStats


  • public class AtomicStats
    extends java.lang.Object
    Debugging stats about operations
    • Constructor Summary

      Constructors 
      Constructor Description
      AtomicStats()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getOptimisticTimeMs()
      Returns the time spent trying the operation with optimistic locks
      int getOptimisticTries()
      Returns the number of optimistic locks used to perform the operation
      int getPromotedLockTries()
      Returns the number of mutex locks used to perform the operation
      long getPromotedTimeMs()
      Returns the time spent trying the operation with mutex locks
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AtomicStats

        public AtomicStats()
    • Method Detail

      • 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