Class CycleDetectingLockFactory.PotentialDeadlockException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- java.lang.IllegalStateException
- 
- com.google.common.util.concurrent.CycleDetectingLockFactory.PotentialDeadlockException
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 - Enclosing class:
- CycleDetectingLockFactory
 
 public static final class CycleDetectingLockFactory.PotentialDeadlockException extends java.lang.IllegalStateException Represents a detected cycle in lock acquisition ordering. The exception includes a causal chain ofExampleStackTraceinstances 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 forPolicies.THROW.- Since:
- 13.0
- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTracegetConflictingStackTrace()java.lang.StringgetMessage()Appends the chain of messages from theconflictingStackTraceto the originalmessage.
 
- 
- 
- 
Method Detail- 
getConflictingStackTracepublic com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTrace getConflictingStackTrace() 
 - 
getMessagepublic java.lang.String getMessage() Appends the chain of messages from theconflictingStackTraceto the originalmessage.- Overrides:
- getMessagein class- java.lang.Throwable
 
 
- 
 
-