@Beta public static final class CycleDetectingLockFactory.PotentialDeadlockException extends CycleDetectingLockFactory.ExampleStackTrace
ExampleStackTrace
instances to illustrate the cycle, e.g.
com....PotentialDeadlockException: Potential Deadlock from LockC -> ReadWriteA at ... at ... Caused by: com...ExampleStackTrace: LockB -> LockC at ... at ... Caused by: com...ExampleStackTrace: ReadWriteA -> LockB at ... at ...
Instances are logged for the Policies.WARN
, and thrown for Policies.THROW
.
Modifier and Type | Field and Description |
---|---|
private CycleDetectingLockFactory.ExampleStackTrace |
conflictingStackTrace |
EMPTY_STACK_TRACE, EXCLUDED_CLASS_NAMES
Modifier | Constructor and Description |
---|---|
private |
PotentialDeadlockException(CycleDetectingLockFactory.LockGraphNode node1,
CycleDetectingLockFactory.LockGraphNode node2,
CycleDetectingLockFactory.ExampleStackTrace conflictingStackTrace) |
Modifier and Type | Method and Description |
---|---|
CycleDetectingLockFactory.ExampleStackTrace |
getConflictingStackTrace() |
java.lang.String |
getMessage()
Appends the chain of messages from the
conflictingStackTrace to the original message . |
private final CycleDetectingLockFactory.ExampleStackTrace conflictingStackTrace
private PotentialDeadlockException(CycleDetectingLockFactory.LockGraphNode node1, CycleDetectingLockFactory.LockGraphNode node2, CycleDetectingLockFactory.ExampleStackTrace conflictingStackTrace)
public CycleDetectingLockFactory.ExampleStackTrace getConflictingStackTrace()
public java.lang.String getMessage()
conflictingStackTrace
to the original message
.getMessage
in class java.lang.Throwable