Tabnine Logo
CycleDetectingLockFactory$PotentialDeadlockException
Code IndexAdd Tabnine to your IDE (free)

How to use
CycleDetectingLockFactory$PotentialDeadlockException
in
com.google.common.util.concurrent

Best Java code snippets using com.google.common.util.concurrent.CycleDetectingLockFactory$PotentialDeadlockException (Showing top 20 results out of 315)

origin: wildfly/wildfly

  new PotentialDeadlockException(
    acquiredLock, this, previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: google/guava

public void testDeadlock_twoLocks() {
 // Establish an acquisition order of lockA -> lockB.
 lockA.lock();
 lockB.lock();
 lockA.unlock();
 lockB.unlock();
 // The opposite order should fail (Policies.THROW).
 PotentialDeadlockException firstException = null;
 lockB.lock();
 try {
  lockA.lock();
  fail("Expected PotentialDeadlockException");
 } catch (PotentialDeadlockException expected) {
  checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
  firstException = expected;
 }
 // Second time should also fail, with a cached causal chain.
 try {
  lockA.lock();
  fail("Expected PotentialDeadlockException");
 } catch (PotentialDeadlockException expected) {
  checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
  // The causal chain should be cached.
  assertSame(firstException.getCause(), expected.getCause());
 }
 // lockA should work after lockB is released.
 lockB.unlock();
 lockA.lock();
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: com.ning.billing/killbill-osgi-bundles-jruby

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

  new PotentialDeadlockException(
    acquiredLock, this, previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: org.jboss.eap/wildfly-client-all

  new PotentialDeadlockException(
    acquiredLock, this, previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: com.diffplug.guava/guava-concurrent

PotentialDeadlockException exception = new PotentialDeadlockException(
    acquiredLock, this,
    previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
PotentialDeadlockException exception = new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: org.hudsonci.lib.guava/guava

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: Nextdoor/bender

PotentialDeadlockException exception = new PotentialDeadlockException(
  acquiredLock, this,
  previousDeadlockException.getConflictingStackTrace());
policy.handlePotentialDeadlock(exception);
return;
  new PotentialDeadlockException(acquiredLock, this, path);
disallowedPriorLocks.put(acquiredLock, exception);
policy.handlePotentialDeadlock(exception);
origin: com.google.guava/guava-tests

public void testDeadlock_twoLocks() {
 // Establish an acquisition order of lockA -> lockB.
 lockA.lock();
 lockB.lock();
 lockA.unlock();
 lockB.unlock();
 // The opposite order should fail (Policies.THROW).
 PotentialDeadlockException firstException = null;
 lockB.lock();
 try {
  lockA.lock();
  fail("Expected PotentialDeadlockException");
 } catch (PotentialDeadlockException expected) {
  checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
  firstException = expected;
 }
 // Second time should also fail, with a cached causal chain.
 try {
  lockA.lock();
  fail("Expected PotentialDeadlockException");
 } catch (PotentialDeadlockException expected) {
  checkMessage(expected, "LockB -> LockA", "LockA -> LockB");
  // The causal chain should be cached.
  assertSame(firstException.getCause(), expected.getCause());
 }
 // lockA should work after lockB is released.
 lockB.unlock();
 lockA.lock();
}
origin: Nextdoor/bender

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: org.jboss.eap/wildfly-client-all

private PotentialDeadlockException(
  LockGraphNode node1, LockGraphNode node2, ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

private PotentialDeadlockException(
  LockGraphNode node1, LockGraphNode node2, ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: org.hudsonci.lib.guava/guava

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
origin: at.bestsolution.efxclipse.eclipse/com.google.guava

private PotentialDeadlockException(
  LockGraphNode node1,
  LockGraphNode node2,
  ExampleStackTrace conflictingStackTrace) {
 super(node1, node2);
 this.conflictingStackTrace = conflictingStackTrace;
 initCause(conflictingStackTrace);
}
com.google.common.util.concurrentCycleDetectingLockFactory$PotentialDeadlockException

Javadoc

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.

Most used methods

  • <init>
  • getConflictingStackTrace
  • initCause
  • getCause

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now