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

How to use
getNumberOfJobsAttemptedToAcquire
method
in
org.camunda.bpm.engine.impl.jobexecutor.AcquiredJobs

Best Java code snippets using org.camunda.bpm.engine.impl.jobexecutor.AcquiredJobs.getNumberOfJobsAttemptedToAcquire (Showing top 3 results out of 315)

origin: camunda/camunda-bpm-platform

/**
 * @return true, if for all engines there were less jobs acquired than requested
 */
public boolean areAllEnginesIdle() {
 for (AcquiredJobs acquiredJobs : acquiredJobsByEngine.values()) {
  int jobsAcquired = acquiredJobs.getJobIdBatches().size() + acquiredJobs.getNumberOfJobsFailedToLock();
  if (jobsAcquired >= acquiredJobs.getNumberOfJobsAttemptedToAcquire()) {
   return false;
  }
 }
 return true;
}
origin: camunda/camunda-bpm-platform

/**
 * @return true, if for all engines there were less jobs acquired than requested
 */
public boolean areAllEnginesIdle() {
 for (AcquiredJobs acquiredJobs : acquiredJobsByEngine.values()) {
  int jobsAcquired = acquiredJobs.getJobIdBatches().size() + acquiredJobs.getNumberOfJobsFailedToLock();
  if (jobsAcquired >= acquiredJobs.getNumberOfJobsAttemptedToAcquire()) {
   return false;
  }
 }
 return true;
}
origin: org.camunda.bpm/camunda-engine

/**
 * @return true, if for all engines there were less jobs acquired than requested
 */
public boolean areAllEnginesIdle() {
 for (AcquiredJobs acquiredJobs : acquiredJobsByEngine.values()) {
  int jobsAcquired = acquiredJobs.getJobIdBatches().size() + acquiredJobs.getNumberOfJobsFailedToLock();
  if (jobsAcquired >= acquiredJobs.getNumberOfJobsAttemptedToAcquire()) {
   return false;
  }
 }
 return true;
}
org.camunda.bpm.engine.impl.jobexecutorAcquiredJobsgetNumberOfJobsAttemptedToAcquire

Popular methods of AcquiredJobs

  • size
  • <init>
  • addJobIdBatch
  • getJobIdBatches
  • removeJobId
  • contains
  • getNumberOfJobsFailedToLock

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
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