Class ManagedJobExecutor


  • public class ManagedJobExecutor
    extends org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
    JobExecutor implementation that utilises an application server's managed thread pool to acquire and execute jobs.
    • Field Summary

      • Fields inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor

        acquireJobsCmdFactory, acquireJobsRunnable, backoffDecreaseThreshold, backoffTimeInMillis, isActive, isAutoActivate, jobAcquisitionThread, lockOwner, lockTimeInMillis, maxBackoff, maxJobsPerAcquisition, maxWait, name, processEngines, rejectedJobsHandler, waitIncreaseFactor, waitTimeInMillis
    • Constructor Summary

      Constructors 
      Constructor Description
      ManagedJobExecutor​(javax.enterprise.concurrent.ManagedExecutorService managedExecutorService)
      Constructs a new ManagedJobExecutor with the provided ManagedExecutorService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void executeJobs​(List<String> jobIds, org.camunda.bpm.engine.impl.ProcessEngineImpl processEngine)  
      protected void startExecutingJobs()  
      protected void stopExecutingJobs()  
      • Methods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor

        engineIterator, ensureCleanup, ensureInitialization, executeJobs, getAcquireJobsCmd, getAcquireJobsCmdFactory, getAcquireJobsRunnable, getBackoffDecreaseThreshold, getBackoffTimeInMillis, getCommandExecutor, getExecuteJobsRunnable, getLockOwner, getLockTimeInMillis, getMaxBackoff, getMaxJobsPerAcquisition, getMaxWait, getName, getProcessEngines, getRejectedJobsHandler, getWaitIncreaseFactor, getWaitTimeInMillis, hasRegisteredEngine, isActive, isAutoActivate, jobWasAdded, logAcquiredJobs, logAcquisitionAttempt, logAcquisitionFailureJobs, logRejectedExecution, registerProcessEngine, setAcquireJobsCmdFactory, setAutoActivate, setBackoffDecreaseThreshold, setBackoffTimeInMillis, setCommandExecutor, setLockOwner, setLockTimeInMillis, setMaxBackoff, setMaxJobsPerAcquisition, setMaxWait, setProcessEngines, setRejectedJobsHandler, setWaitIncreaseFactor, setWaitTimeInMillis, shutdown, start, startJobAcquisitionThread, stopJobAcquisitionThread, unregisterProcessEngine
    • Constructor Detail

      • ManagedJobExecutor

        public ManagedJobExecutor​(javax.enterprise.concurrent.ManagedExecutorService managedExecutorService)
        Constructs a new ManagedJobExecutor with the provided ManagedExecutorService
    • Method Detail

      • executeJobs

        public void executeJobs​(List<String> jobIds,
                                org.camunda.bpm.engine.impl.ProcessEngineImpl processEngine)
        Specified by:
        executeJobs in class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
      • startExecutingJobs

        protected void startExecutingJobs()
        Specified by:
        startExecutingJobs in class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
      • stopExecutingJobs

        protected void stopExecutingJobs()
        Specified by:
        stopExecutingJobs in class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor