Class CycleDetectingLockFactory.PotentialDeadlockException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by
All Implemented Interfaces:
Enclosing class:

public static final class CycleDetectingLockFactory.PotentialDeadlockException
extends IllegalStateException

Represents a detected cycle in lock acquisition ordering. The exception includes a causal chain of ExampleStackTraces 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.

See Also:
Serialized Form

Method Summary getConflictingStackTrace()
 String getMessage()
          Appends the chain of messages from the conflictingStackTrace to the original message.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Method Detail


public getConflictingStackTrace()


public String getMessage()
Appends the chain of messages from the conflictingStackTrace to the original message.

getMessage in class Throwable

Copyright © 2010-2012. All Rights Reserved.