Class ManagedJobExecutor
java.lang.Object
org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
org.camunda.bpm.quarkus.engine.extension.impl.ManagedJobExecutor
A
JobExecutor implementation that utilises a separate thread pool
to acquire and execute jobs.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClassLoaderprotected org.eclipse.microprofile.context.ManagedExecutorFields 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
ConstructorsConstructorDescriptionManagedJobExecutor(org.eclipse.microprofile.context.ManagedExecutor taskExecutor) Constructs a new ManagedJobExecutor with the providedManagedExecutorinstance.ManagedJobExecutor(org.eclipse.microprofile.context.ManagedExecutor taskExecutor, ClassLoader applicationClassLoader) Constructs a new ManagedJobExecutor with the providedManagedExecutorinstance and application classloader. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteJobs(List<String> jobIds, ProcessEngineImpl processEngine) getExecuteJobsRunnable(List<String> jobIds, ProcessEngineImpl processEngine) protected voidprotected voidMethods inherited from class org.camunda.bpm.engine.impl.jobexecutor.JobExecutor
calculateTotalQueueCapacity, engineIterator, ensureCleanup, ensureInitialization, executeJobs, getAcquireJobsCmd, getAcquireJobsCmdFactory, getAcquireJobsRunnable, getBackoffDecreaseThreshold, getBackoffTimeInMillis, getCommandExecutor, getLockOwner, getLockTimeInMillis, getMaxBackoff, getMaxJobsPerAcquisition, getMaxWait, getName, getProcessEngines, getRejectedJobsHandler, getWaitIncreaseFactor, getWaitTimeInMillis, hasRegisteredEngine, isActive, isAutoActivate, jobWasAdded, logAcquiredJobs, logAcquisitionAttempt, logAcquisitionFailureJobs, logJobExecutionInfo, logRejectedExecution, registerProcessEngine, setAcquireJobsCmdFactory, setAutoActivate, setBackoffDecreaseThreshold, setBackoffTimeInMillis, setCommandExecutor, setLockOwner, setLockTimeInMillis, setMaxBackoff, setMaxJobsPerAcquisition, setMaxWait, setProcessEngines, setRejectedJobsHandler, setWaitIncreaseFactor, setWaitTimeInMillis, shutdown, start, startJobAcquisitionThread, stopJobAcquisitionThread, unregisterProcessEngine
-
Field Details
-
taskExecutor
protected org.eclipse.microprofile.context.ManagedExecutor taskExecutor -
applicationClassLoader
-
-
Constructor Details
-
ManagedJobExecutor
public ManagedJobExecutor(org.eclipse.microprofile.context.ManagedExecutor taskExecutor) Constructs a new ManagedJobExecutor with the providedManagedExecutorinstance. -
ManagedJobExecutor
public ManagedJobExecutor(org.eclipse.microprofile.context.ManagedExecutor taskExecutor, ClassLoader applicationClassLoader) Constructs a new ManagedJobExecutor with the providedManagedExecutorinstance and application classloader.
-
-
Method Details
-
startExecutingJobs
protected void startExecutingJobs()- Specified by:
startExecutingJobsin classJobExecutor
-
stopExecutingJobs
protected void stopExecutingJobs()- Specified by:
stopExecutingJobsin classJobExecutor
-
executeJobs
- Specified by:
executeJobsin classJobExecutor
-
getExecuteJobsRunnable
- Overrides:
getExecuteJobsRunnablein classJobExecutor
-