com.google.common.util.concurrent
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:
- Serializable
- Enclosing class:
- CycleDetectingLockFactory
@Beta
public static final class CycleDetectingLockFactory.PotentialDeadlockException
- extends IllegalStateException
Represents a detected cycle in lock acquisition ordering. The exception
includes a causal chain of ExampleStackTrace
s 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
.
- Since:
- 13.0
- See Also:
- Serialized Form
Method Summary |
com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTrace |
getConflictingStackTrace()
|
String |
getMessage()
Appends the chain of messages from the conflictingStackTrace to
the original message . |
getConflictingStackTrace
public com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTrace getConflictingStackTrace()
getMessage
public String getMessage()
- Appends the chain of messages from the
conflictingStackTrace
to
the original message
.
- Overrides:
getMessage
in class Throwable
Copyright © 2010-2012. All Rights Reserved.