Class CycleDetectingLockFactory.ExampleStackTrace
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- com.google.common.util.concurrent.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
-
Constructor Summary
Constructors Constructor Description ExampleStackTrace(CycleDetectingLockFactory.LockGraphNode node1, CycleDetectingLockFactory.LockGraphNode node2)
-
-
-
Constructor Detail
-
ExampleStackTrace
ExampleStackTrace(CycleDetectingLockFactory.LockGraphNode node1, CycleDetectingLockFactory.LockGraphNode node2)
-
-