public class SpringAsyncExecutor extends DefaultAsyncJobExecutor
This is an AsyncExecutor implementation which allows invoking a custom job rejected jobs handler.
The idea behind this implementation is to externalize the configuration of the task executor, so it can leverage to Application servers controller thread pools, for example using the commonj API. The use of unmanaged thread in application servers is discouraged by the Java EE spec.
| Modifier and Type | Field and Description |
|---|---|
protected SpringRejectedJobsHandler |
rejectedJobsHandler |
asyncJobAcquisitionThread, isAsyncJobAcquisitionEnabled, isResetExpiredJobEnabled, isTimerJobAcquisitionEnabled, resetExpiredJobThread, shutdownTaskExecutor, taskExecutor, timerJobAcquisitionThread, unlockOwnedJobsacquireRunnableThreadName, asyncJobLockTimeInMillis, asyncJobsDueRunnable, asyncRunnableExecutionExceptionHandler, defaultAsyncJobAcquireWaitTimeInMillis, defaultQueueSizeFullWaitTime, defaultTimerJobAcquireWaitTimeInMillis, executeAsyncRunnableFactory, isActive, isAutoActivate, isMessageQueueMode, jobEntityManager, jobServiceConfiguration, lockOwner, maxAsyncJobsDuePerAcquisition, maxTimerJobsPerAcquisition, resetExpiredJobsInterval, resetExpiredJobsPageSize, resetExpiredJobsRunnable, resetExpiredRunnableName, retryWaitTimeInMillis, temporaryJobQueue, timerJobRunnable, timerLockTimeInMillis, timerRunnableNeeded| Constructor and Description |
|---|
SpringAsyncExecutor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
executeAsyncJob(org.flowable.job.api.JobInfo job) |
SpringRejectedJobsHandler |
getRejectedJobsHandler() |
protected void |
initAsyncJobExecutionThreadPool() |
void |
setRejectedJobsHandler(SpringRejectedJobsHandler rejectedJobsHandler)
SpringRejectedJobsHandler implementation that will be used when jobs were rejected by the task executor. |
createResetExpiredJobsRunnable, executeAsyncJob, getAsyncJobAcquisitionThread, getRemainingCapacity, getResetExpiredJobThread, getTaskExecutor, getTimerJobAcquisitionThread, isAsyncJobAcquisitionEnabled, isResetExpiredJobEnabled, isTimerJobAcquisitionEnabled, isUnlockOwnedJobs, setAsyncJobAcquisitionEnabled, setAsyncJobAcquisitionThread, setResetExpiredJobEnabled, setResetExpiredJobThread, setTaskExecutor, setTimerJobAcquisitionEnabled, setTimerJobAcquisitionThread, setUnlockOwnedJobs, shutdownAdditionalComponents, startAdditionalComponents, startJobAcquisitionThread, startResetExpiredJobsThread, startTimerAcquisitionThread, stopExecutingAsyncJobs, stopJobAcquisitionThread, stopResetExpiredJobsThread, stopTimerAcquisitionThread, unacquireJobAfterRejectioncreateRunnableForJob, executeTemporaryJobs, getAsyncJobLockTimeInMillis, getAsyncJobsDueRunnable, getAsyncRunnableExecutionExceptionHandler, getDefaultAsyncJobAcquireWaitTimeInMillis, getDefaultQueueSizeFullWaitTimeInMillis, getDefaultTimerJobAcquireWaitTimeInMillis, getExecuteAsyncRunnableFactory, getJobServiceConfiguration, getLockOwner, getMaxAsyncJobsDuePerAcquisition, getMaxTimerJobsPerAcquisition, getResetExpiredJobsInterval, getResetExpiredJobsPageSize, getResetExpiredJobsRunnable, getRetryWaitTimeInMillis, getTimerJobRunnable, getTimerLockTimeInMillis, initializeJobEntityManager, initializeRunnables, isActive, isAutoActivate, isMessageQueueMode, setAcquireRunnableThreadName, setAsyncJobLockTimeInMillis, setAsyncJobsDueRunnable, setAsyncRunnableExecutionExceptionHandler, setAutoActivate, setDefaultAsyncJobAcquireWaitTimeInMillis, setDefaultQueueSizeFullWaitTimeInMillis, setDefaultTimerJobAcquireWaitTimeInMillis, setExecuteAsyncRunnableFactory, setJobEntityManager, setJobServiceConfiguration, setLockOwner, setMaxAsyncJobsDuePerAcquisition, setMaxTimerJobsPerAcquisition, setMessageQueueMode, setResetExpiredJobsInterval, setResetExpiredJobsPageSize, setResetExpiredJobsRunnable, setResetExpiredRunnableName, setRetryWaitTimeInMillis, setTenantId, setTimerJobRunnable, setTimerLockTimeInMillis, setTimerRunnableNeeded, shutdown, start, stopRunnables, unlockOwnedJobsprotected SpringRejectedJobsHandler rejectedJobsHandler
public SpringRejectedJobsHandler getRejectedJobsHandler()
public void setRejectedJobsHandler(SpringRejectedJobsHandler rejectedJobsHandler)
SpringRejectedJobsHandler implementation that will be used when jobs were rejected by the task executor.rejectedJobsHandler - public boolean executeAsyncJob(org.flowable.job.api.JobInfo job)
executeAsyncJob in interface AsyncExecutorexecuteAsyncJob in class AbstractAsyncExecutorprotected void initAsyncJobExecutionThreadPool()
initAsyncJobExecutionThreadPool in class DefaultAsyncJobExecutorCopyright © 2020 Flowable. All rights reserved.