Class LockStats


  • public class LockStats
    extends java.lang.Object
    This class manages statistics related to lock attempts on Lock.
    Author:
    hakon
    • Method Detail

      • getGlobal

        public static LockStats getGlobal()
        Returns global stats.
      • getForCurrentThread

        public static ThreadLockStats getForCurrentThread()
        Returns stats tied to the current thread.
      • clearForTesting

        public static void clearForTesting()
      • getLockMetricsByPath

        public java.util.Map<java.lang.String,​LockMetrics> getLockMetricsByPath()
      • getThreadLockStats

        public java.util.List<ThreadLockStats> getThreadLockStats()
      • getLockAttemptSamples

        public java.util.List<LockAttempt> getLockAttemptSamples()