Class CycleDetectingLockFactory.PotentialDeadlockException

  • All Implemented Interfaces:
    Enclosing class:
    CycleDetectingLockFactory

    @Beta
    public static final class CycleDetectingLockFactory.PotentialDeadlockException
    extends 
    Represents a detected cycle in lock acquisition ordering. The exception includes a causal chain of 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.

    Since:
    13.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTrace getConflictingStackTrace()  
      getMessage()
      Appends the chain of messages from the conflictingStackTrace to the original message.
      • Methods inherited from class java.lang.

        , , , , , , , , , , ,
      • Methods inherited from class java.lang.

        , , , , , , , , ,
    • Method Detail

      • getConflictingStackTrace

        public com.google.common.util.concurrent.CycleDetectingLockFactory.ExampleStackTrace getConflictingStackTrace()
      • getMessage

        public  getMessage()
        Appends the chain of messages from the conflictingStackTrace to the original message.
        Overrides:
         in class 
        Returns:
        the detail message string of this Throwable instance (which may be null).