org.camunda.bpm.engine.impl.jobexecutor
Class ThreadPoolJobExecutor

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
      extended by org.camunda.bpm.engine.impl.jobexecutor.ThreadPoolJobExecutor
Direct Known Subclasses:
DefaultJobExecutor

public class ThreadPoolJobExecutor
extends JobExecutor

Author:
Daniel Meyer

Field Summary
protected  ThreadPoolExecutor threadPoolExecutor
           
 
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
ThreadPoolJobExecutor()
           
 
Method Summary
 void executeJobs(List<String> jobIds, ProcessEngineImpl processEngine)
           
 ThreadPoolExecutor getThreadPoolExecutor()
           
 void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadPoolExecutor

protected ThreadPoolExecutor threadPoolExecutor
Constructor Detail

ThreadPoolJobExecutor

public ThreadPoolJobExecutor()
Method Detail

startExecutingJobs

protected void startExecutingJobs()
Specified by:
startExecutingJobs in class JobExecutor

stopExecutingJobs

protected void stopExecutingJobs()
Specified by:
stopExecutingJobs in class JobExecutor

executeJobs

public void executeJobs(List<String> jobIds,
                        ProcessEngineImpl processEngine)
Specified by:
executeJobs in class JobExecutor

getThreadPoolExecutor

public ThreadPoolExecutor getThreadPoolExecutor()

setThreadPoolExecutor

public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)


Copyright © 2015 camunda services GmbH. All rights reserved.