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:
Serializable
- Direct Known Subclasses:
CycleDetectingLockFactory.PotentialDeadlockException
- Enclosing class:
CycleDetectingLockFactory
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
FieldsModifier and TypeFieldDescription(package private) static final StackTraceElement[]
(package private) static final ImmutableSet
<String> -
Constructor Summary
ConstructorsConstructorDescriptionExampleStackTrace
(CycleDetectingLockFactory.LockGraphNode node1, CycleDetectingLockFactory.LockGraphNode node2) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
EMPTY_STACK_TRACE
-
EXCLUDED_CLASS_NAMES
-
-
Constructor Details
-
ExampleStackTrace
ExampleStackTrace(CycleDetectingLockFactory.LockGraphNode node1, CycleDetectingLockFactory.LockGraphNode node2)
-