congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ConcurrencyException.signalAttemptedBeforeWait
Code IndexAdd Tabnine to your IDE (free)

How to use
signalAttemptedBeforeWait
method
in
org.eclipse.persistence.exceptions.ConcurrencyException

Best Java code snippets using org.eclipse.persistence.exceptions.ConcurrencyException.signalAttemptedBeforeWait (Showing top 6 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Decrement the number of readers.
 * Used to allow concurrent reads.
 */
public synchronized void releaseReadLock() throws ConcurrencyException {
  if (this.numberOfReaders == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.numberOfReaders--;
  }
  if (this.numberOfReaders == 0) {
    notifyAll();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Decrement the number of readers.
 * Used to allow concurrent reads.
 */
public synchronized void releaseReadLock() throws ConcurrencyException {
  if (this.numberOfReaders == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.numberOfReaders--;
  }
  if (this.numberOfReaders == 0) {
    notifyAll();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Decrement the number of readers.
 * Used to allow concurrent reads.
 */
public synchronized void releaseReadLock() throws ConcurrencyException {
  if (this.numberOfReaders == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.numberOfReaders--;
  }
  if (this.numberOfReaders == 0) {
    notifyAll();
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Decrement the depth for the active thread.
 * Assume the current thread is the active one.
 * Raise an error if the depth become < 0.
 * The notify will release the first thread waiting on the object,
 * if no threads are waiting it will do nothing.
 */
public synchronized void release() throws ConcurrencyException {
  if (this.depth == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.depth--;
  }
  if (this.depth == 0) {
    this.activeThread = null;
    this.lockedByMergeManager = false;
    notifyAll();
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Decrement the depth for the active thread.
 * Assume the current thread is the active one.
 * Raise an error if the depth become < 0.
 * The notify will release the first thread waiting on the object,
 * if no threads are waiting it will do nothing.
 */
public synchronized void release() throws ConcurrencyException {
  if (this.depth == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.depth--;
  }
  if (this.depth == 0) {
    this.activeThread = null;
    if (shouldTrackStack){
      this.stack = null;
    }
    this.lockedByMergeManager = false;
    notifyAll();
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Decrement the depth for the active thread.
 * Assume the current thread is the active one.
 * Raise an error if the depth become < 0.
 * The notify will release the first thread waiting on the object,
 * if no threads are waiting it will do nothing.
 */
public synchronized void release() throws ConcurrencyException {
  if (this.depth == 0) {
    throw ConcurrencyException.signalAttemptedBeforeWait();
  } else {
    this.depth--;
  }
  if (this.depth == 0) {
    this.activeThread = null;
    if (shouldTrackStack){
      this.stack = null;
    }
    this.lockedByMergeManager = false;
    notifyAll();
  }
}
org.eclipse.persistence.exceptionsConcurrencyExceptionsignalAttemptedBeforeWait

Popular methods of ConcurrencyException

  • <init>
    INTERNAL: TopLink exceptions should only be thrown by TopLink.
  • maxTriesLockOnBuildObjectExceded
  • maxTriesLockOnCloneExceded
  • setErrorCode
  • waitFailureOnClientSession
  • waitFailureOnSequencingForDatabaseSession
  • waitFailureOnServerSession
  • waitWasInterrupted

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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