Tabnine Logo
ConcurrencyException.maxTriesLockOnBuildObjectExceded
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.persistence/org.eclipse.persistence.core

  public synchronized Object waitForObject(){
    try {
      int count = 0;
      while (this.object == null && isAcquired()) {
        if (count > MAX_WAIT_TRIES)
          throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(getActiveThread(), Thread.currentThread());
        wait(10);
        ++count;
      }
    } catch(InterruptedException ex) {
      //ignore as the loop is broken
    }
    return this.object;
  }
}
origin: com.haulmont.thirdparty/eclipselink

  public synchronized Object waitForObject(){
    try {
      int count = 0;
      while (this.object == null && isAcquired()) {
        if (count > MAX_WAIT_TRIES)
          throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(getActiveThread(), Thread.currentThread());
        wait(10);
        ++count;
      }
    } catch(InterruptedException ex) {
      //ignore as the loop is broken
    }
    return this.object;
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  public Object waitForObject(){
    synchronized (getMutex()) {
      try{
        int count = 0;
        while(this.object == null && this.isAcquired()){
          if (count > MAX_WAIT_TRIES)
            throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(getMutex().getActiveThread(), Thread.currentThread());
          getMutex().wait(10);
          ++count;
        }
      }catch(InterruptedException ex){
        //ignore as the loop is broken
      }
      return this.object;
    }
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

public void acquireLock(ObjectBuildingQuery query){
  // PERF: Only use deferred locking if required.
  // CR#3876308 If joining is used, deferred locks are still required.
  if (query.requiresDeferredLocks()) {
    this.acquireDeferredLock();
    int counter = 0;
    while ((this.object == null) && (counter < 1000)) {
      if (this.getActiveThread() == Thread.currentThread()) {
        break;
      }
      //must release lock here to prevent acquiring multiple deferred locks but only
      //releasing one at the end of the build object call.
      //bug 5156075
      this.releaseDeferredLock();
      //sleep and try again if we are not the owner of the lock for CR 2317
      // prevents us from modifying a cache key that another thread has locked.
      try {
        Thread.sleep(10);
      } catch (InterruptedException exception) {
      }
      this.acquireDeferredLock();
      counter++;
    }
    if (counter == 1000) {
      throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(this.getActiveThread(), Thread.currentThread());
    }
  } else {
    this.acquire();
  }
}
origin: com.haulmont.thirdparty/eclipselink

throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(this.getActiveThread(), Thread.currentThread());
origin: com.haulmont.thirdparty/eclipselink

throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(cacheKey.getActiveThread(), Thread.currentThread());
origin: org.eclipse.persistence/org.eclipse.persistence.core

throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(cacheKey.getActiveThread(), Thread.currentThread());
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

throw ConcurrencyException.maxTriesLockOnBuildObjectExceded(cacheKey.getMutex().getActiveThread(), Thread.currentThread());
org.eclipse.persistence.exceptionsConcurrencyExceptionmaxTriesLockOnBuildObjectExceded

Popular methods of ConcurrencyException

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JLabel (javax.swing)
  • CodeWhisperer alternatives
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