public class ManagedJobExecutor extends JobExecutor
JobExecutor implementation that utilises an application server's
managed thread pool to acquire and execute jobs.acquireJobsCmdFactory, acquireJobsRunnable, backoffDecreaseThreshold, backoffTimeInMillis, isActive, isAutoActivate, jobAcquisitionThread, lockOwner, lockTimeInMillis, maxBackoff, maxJobsPerAcquisition, maxWait, name, processEngines, rejectedJobsHandler, waitIncreaseFactor, waitTimeInMillis| Constructor and Description |
|---|
ManagedJobExecutor(javax.enterprise.concurrent.ManagedExecutorService managedExecutorService)
Constructs a new ManagedJobExecutor with the provided
ManagedExecutorService |
| Modifier and Type | Method and Description |
|---|---|
void |
executeJobs(List<String> jobIds,
ProcessEngineImpl processEngine) |
protected void |
startExecutingJobs() |
protected void |
stopExecutingJobs() |
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, unregisterProcessEnginepublic ManagedJobExecutor(javax.enterprise.concurrent.ManagedExecutorService managedExecutorService)
ManagedExecutorServicepublic void executeJobs(List<String> jobIds, ProcessEngineImpl processEngine)
executeJobs in class JobExecutorprotected void startExecutingJobs()
startExecutingJobs in class JobExecutorprotected void stopExecutingJobs()
stopExecutingJobs in class JobExecutorCopyright © 2022. All rights reserved.