Class CycleDetectingLockFactory.ExampleStackTrace

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CycleDetectingLockFactory.PotentialDeadlockException
    Enclosing class:
    CycleDetectingLockFactory

    private static class CycleDetectingLockFactory.ExampleStackTrace
    extends java.lang.IllegalStateException
    A Throwable used to record a stack trace that illustrates an example of a specific lock acquisition ordering. The top of the stack trace is truncated such that it starts with the acquisition of the lock in question, e.g.
     com...ExampleStackTrace: LockB -> LockC
       at com...CycleDetectingReentrantLock.lock(CycleDetectingLockFactory.java:443)
       at ...
       at ...
       at com...MyClass.someMethodThatAcquiresLockB(MyClass.java:123)
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.StackTraceElement[] EMPTY_STACK_TRACE  
      (package private) static java.util.Set<java.lang.String> EXCLUDED_CLASS_NAMES  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait