public abstract class AbstractAsyncExecutor extends Object implements AsyncExecutor
| Constructor and Description |
|---|
AbstractAsyncExecutor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRemainingCapacityprotected boolean timerRunnableNeeded
protected AcquireTimerJobsRunnable timerJobRunnable
protected String acquireRunnableThreadName
protected JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
protected AcquireAsyncJobsDueRunnable asyncJobsDueRunnable
protected String resetExpiredRunnableName
protected ResetExpiredJobsRunnable resetExpiredJobsRunnable
protected ExecuteAsyncRunnableFactory executeAsyncRunnableFactory
protected AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler
protected boolean isAutoActivate
protected boolean isActive
protected boolean isMessageQueueMode
protected int maxTimerJobsPerAcquisition
protected int maxAsyncJobsDuePerAcquisition
protected int defaultTimerJobAcquireWaitTimeInMillis
protected int defaultAsyncJobAcquireWaitTimeInMillis
protected int defaultQueueSizeFullWaitTime
protected String lockOwner
protected int timerLockTimeInMillis
protected int asyncJobLockTimeInMillis
protected int retryWaitTimeInMillis
protected int resetExpiredJobsInterval
protected int resetExpiredJobsPageSize
protected LinkedList<JobInfo> temporaryJobQueue
protected JobServiceConfiguration jobServiceConfiguration
public boolean executeAsyncJob(JobInfo job)
AsyncExecutorJobInfo to this AsyncExecutor instance to execute. If the offering does not work for some reason, false will be returned (For example when the job queue is
full in the DefaultAsyncJobExecutor).executeAsyncJob in interface AsyncExecutorprotected void unlockOwnedJobs()
public void start()
start in interface AsyncExecutorprotected void initializeJobEntityManager()
protected void initializeRunnables()
protected abstract void startAdditionalComponents()
protected void executeTemporaryJobs()
public void shutdown()
shutdown in interface AsyncExecutorprotected void stopRunnables()
protected abstract void shutdownAdditionalComponents()
public JobServiceConfiguration getJobServiceConfiguration()
getJobServiceConfiguration in interface AsyncExecutorpublic void setJobServiceConfiguration(JobServiceConfiguration jobServiceConfiguration)
setJobServiceConfiguration in interface AsyncExecutorpublic boolean isAutoActivate()
isAutoActivate in interface AsyncExecutorpublic void setAutoActivate(boolean isAutoActivate)
setAutoActivate in interface AsyncExecutorpublic boolean isActive()
isActive in interface AsyncExecutorpublic boolean isMessageQueueMode()
public void setMessageQueueMode(boolean isMessageQueueMode)
public String getLockOwner()
getLockOwner in interface AsyncExecutorpublic void setLockOwner(String lockOwner)
public int getTimerLockTimeInMillis()
getTimerLockTimeInMillis in interface AsyncExecutorpublic void setTimerLockTimeInMillis(int timerLockTimeInMillis)
setTimerLockTimeInMillis in interface AsyncExecutorpublic int getAsyncJobLockTimeInMillis()
getAsyncJobLockTimeInMillis in interface AsyncExecutorpublic void setAsyncJobLockTimeInMillis(int asyncJobLockTimeInMillis)
setAsyncJobLockTimeInMillis in interface AsyncExecutorpublic int getMaxTimerJobsPerAcquisition()
getMaxTimerJobsPerAcquisition in interface AsyncExecutorpublic void setMaxTimerJobsPerAcquisition(int maxTimerJobsPerAcquisition)
setMaxTimerJobsPerAcquisition in interface AsyncExecutorpublic int getMaxAsyncJobsDuePerAcquisition()
getMaxAsyncJobsDuePerAcquisition in interface AsyncExecutorpublic void setMaxAsyncJobsDuePerAcquisition(int maxAsyncJobsDuePerAcquisition)
setMaxAsyncJobsDuePerAcquisition in interface AsyncExecutorpublic int getDefaultTimerJobAcquireWaitTimeInMillis()
getDefaultTimerJobAcquireWaitTimeInMillis in interface AsyncExecutorpublic void setDefaultTimerJobAcquireWaitTimeInMillis(int defaultTimerJobAcquireWaitTimeInMillis)
setDefaultTimerJobAcquireWaitTimeInMillis in interface AsyncExecutorpublic int getDefaultAsyncJobAcquireWaitTimeInMillis()
getDefaultAsyncJobAcquireWaitTimeInMillis in interface AsyncExecutorpublic void setDefaultAsyncJobAcquireWaitTimeInMillis(int defaultAsyncJobAcquireWaitTimeInMillis)
setDefaultAsyncJobAcquireWaitTimeInMillis in interface AsyncExecutorpublic void setTimerJobRunnable(AcquireTimerJobsRunnable timerJobRunnable)
public int getDefaultQueueSizeFullWaitTimeInMillis()
getDefaultQueueSizeFullWaitTimeInMillis in interface AsyncExecutorpublic void setDefaultQueueSizeFullWaitTimeInMillis(int defaultQueueSizeFullWaitTime)
setDefaultQueueSizeFullWaitTimeInMillis in interface AsyncExecutorpublic void setAsyncJobsDueRunnable(AcquireAsyncJobsDueRunnable asyncJobsDueRunnable)
public void setTimerRunnableNeeded(boolean timerRunnableNeeded)
public void setAcquireRunnableThreadName(String acquireRunnableThreadName)
public void setJobEntityManager(JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager)
public void setResetExpiredRunnableName(String resetExpiredRunnableName)
public void setResetExpiredJobsRunnable(ResetExpiredJobsRunnable resetExpiredJobsRunnable)
public int getRetryWaitTimeInMillis()
getRetryWaitTimeInMillis in interface AsyncExecutorpublic void setRetryWaitTimeInMillis(int retryWaitTimeInMillis)
setRetryWaitTimeInMillis in interface AsyncExecutorpublic int getResetExpiredJobsInterval()
getResetExpiredJobsInterval in interface AsyncExecutorpublic void setResetExpiredJobsInterval(int resetExpiredJobsInterval)
setResetExpiredJobsInterval in interface AsyncExecutorpublic int getResetExpiredJobsPageSize()
getResetExpiredJobsPageSize in interface AsyncExecutorpublic void setResetExpiredJobsPageSize(int resetExpiredJobsPageSize)
setResetExpiredJobsPageSize in interface AsyncExecutorpublic ExecuteAsyncRunnableFactory getExecuteAsyncRunnableFactory()
public void setExecuteAsyncRunnableFactory(ExecuteAsyncRunnableFactory executeAsyncRunnableFactory)
public AsyncRunnableExecutionExceptionHandler getAsyncRunnableExecutionExceptionHandler()
public void setAsyncRunnableExecutionExceptionHandler(AsyncRunnableExecutionExceptionHandler asyncRunnableExecutionExceptionHandler)
public AcquireTimerJobsRunnable getTimerJobRunnable()
public AcquireAsyncJobsDueRunnable getAsyncJobsDueRunnable()
public ResetExpiredJobsRunnable getResetExpiredJobsRunnable()
public void setTenantId(String tenantId)
Copyright © 2020 Flowable. All rights reserved.