Class AsyncJobExecutorConfiguration
java.lang.Object
org.flowable.job.service.impl.asyncexecutor.AsyncJobExecutorConfiguration
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether global acquire lock should be used.protected String
The prefix that the runnable should use for the global acquire lock. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
void
setAcquireRunnableThreadName
(String acquireRunnableThreadName) void
setAsyncJobAcquisitionEnabled
(boolean asyncJobAcquisitionEnabled) void
setAsyncJobLockTime
(Duration asyncJobLockTime) void
setAsyncJobLockTimeInMillis
(int asyncJobLockTimeInMillis) Deprecated.void
setAsyncJobsGlobalLockForceAcquireAfter
(Duration asyncJobsGlobalLockForceAcquireAfter) void
setAsyncJobsGlobalLockPollRate
(Duration asyncJobsGlobalLockPollRate) void
setAsyncJobsGlobalLockWaitTime
(Duration asyncJobsGlobalLockWaitTime) void
setDefaultAsyncJobAcquireWaitTime
(Duration defaultAsyncJobAcquireWaitTime) void
setDefaultAsyncJobAcquireWaitTimeInMillis
(int defaultAsyncJobAcquireWaitTimeInMillis) Deprecated.void
setDefaultQueueSizeFullWaitTime
(Duration defaultQueueSizeFullWaitTime) void
setDefaultQueueSizeFullWaitTimeInMillis
(int defaultQueueSizeFullWaitTimeInMillis) Deprecated.void
setDefaultTimerJobAcquireWaitTime
(Duration defaultTimerJobAcquireWaitTime) void
setDefaultTimerJobAcquireWaitTimeInMillis
(int defaultTimerJobAcquireWaitTimeInMillis) Deprecated.void
setGlobalAcquireLockEnabled
(boolean globalAcquireLockEnabled) void
setGlobalAcquireLockPrefix
(String globalAcquireLockPrefix) void
setLockOwner
(String lockOwner) void
setMaxAsyncJobsDuePerAcquisition
(int maxAsyncJobsDuePerAcquisition) void
setMaxTimerJobsPerAcquisition
(int maxTimerJobsPerAcquisition) void
setMoveTimerExecutorPoolSize
(int moveTimerExecutorPoolSize) void
setResetExpiredJobEnabled
(boolean resetExpiredJobEnabled) void
setResetExpiredJobsInterval
(Duration resetExpiredJobsInterval) void
setResetExpiredJobsPageSize
(int resetExpiredJobsPageSize) void
setResetExpiredRunnableName
(String resetExpiredRunnableName) void
setTenantId
(String tenantId) void
setTimerJobAcquisitionEnabled
(boolean timerJobAcquisitionEnabled) void
setTimerLockForceAcquireAfter
(Duration timerLockForceAcquireAfter) void
setTimerLockPollRate
(Duration timerLockPollRate) void
setTimerLockTime
(Duration timerLockTime) void
setTimerLockTimeInMillis
(int timerLockTimeInMillis) Deprecated.void
setTimerLockWaitTime
(Duration timerLockWaitTime) void
setTimerRunnableNeeded
(boolean timerRunnableNeeded) void
setUnlockOwnedJobs
(boolean unlockOwnedJobs)
-
Field Details
-
globalAcquireLockEnabled
protected boolean globalAcquireLockEnabledWhether global acquire lock should be used. -
globalAcquireLockPrefix
The prefix that the runnable should use for the global acquire lock. Setting a different prefix allows differentiating different engines / executors without them competing for the same lock.
-
-
Constructor Details
-
AsyncJobExecutorConfiguration
public AsyncJobExecutorConfiguration()
-
-
Method Details
-
isAsyncJobAcquisitionEnabled
public boolean isAsyncJobAcquisitionEnabled() -
setAsyncJobAcquisitionEnabled
public void setAsyncJobAcquisitionEnabled(boolean asyncJobAcquisitionEnabled) -
isTimerJobAcquisitionEnabled
public boolean isTimerJobAcquisitionEnabled() -
setTimerJobAcquisitionEnabled
public void setTimerJobAcquisitionEnabled(boolean timerJobAcquisitionEnabled) -
isResetExpiredJobEnabled
public boolean isResetExpiredJobEnabled() -
setResetExpiredJobEnabled
public void setResetExpiredJobEnabled(boolean resetExpiredJobEnabled) -
isUnlockOwnedJobs
public boolean isUnlockOwnedJobs() -
setUnlockOwnedJobs
public void setUnlockOwnedJobs(boolean unlockOwnedJobs) -
isTimerRunnableNeeded
public boolean isTimerRunnableNeeded() -
setTimerRunnableNeeded
public void setTimerRunnableNeeded(boolean timerRunnableNeeded) -
getAcquireRunnableThreadName
-
setAcquireRunnableThreadName
-
getResetExpiredRunnableName
-
setResetExpiredRunnableName
-
getMoveTimerExecutorPoolSize
public int getMoveTimerExecutorPoolSize() -
setMoveTimerExecutorPoolSize
public void setMoveTimerExecutorPoolSize(int moveTimerExecutorPoolSize) -
getMaxTimerJobsPerAcquisition
public int getMaxTimerJobsPerAcquisition() -
setMaxTimerJobsPerAcquisition
public void setMaxTimerJobsPerAcquisition(int maxTimerJobsPerAcquisition) -
getMaxAsyncJobsDuePerAcquisition
public int getMaxAsyncJobsDuePerAcquisition() -
setMaxAsyncJobsDuePerAcquisition
public void setMaxAsyncJobsDuePerAcquisition(int maxAsyncJobsDuePerAcquisition) -
getDefaultTimerJobAcquireWaitTime
-
setDefaultTimerJobAcquireWaitTime
-
setDefaultTimerJobAcquireWaitTimeInMillis
@Deprecated public void setDefaultTimerJobAcquireWaitTimeInMillis(int defaultTimerJobAcquireWaitTimeInMillis) Deprecated. -
getDefaultAsyncJobAcquireWaitTime
-
setDefaultAsyncJobAcquireWaitTime
-
setDefaultAsyncJobAcquireWaitTimeInMillis
@Deprecated public void setDefaultAsyncJobAcquireWaitTimeInMillis(int defaultAsyncJobAcquireWaitTimeInMillis) Deprecated. -
getDefaultQueueSizeFullWaitTime
-
setDefaultQueueSizeFullWaitTime
-
setDefaultQueueSizeFullWaitTimeInMillis
@Deprecated public void setDefaultQueueSizeFullWaitTimeInMillis(int defaultQueueSizeFullWaitTimeInMillis) Deprecated. -
getLockOwner
-
setLockOwner
-
getTimerLockTime
-
setTimerLockTime
-
setTimerLockTimeInMillis
Deprecated. -
getAsyncJobLockTime
-
setAsyncJobLockTime
-
setAsyncJobLockTimeInMillis
Deprecated. -
isGlobalAcquireLockEnabled
public boolean isGlobalAcquireLockEnabled() -
setGlobalAcquireLockEnabled
public void setGlobalAcquireLockEnabled(boolean globalAcquireLockEnabled) -
getGlobalAcquireLockPrefix
-
setGlobalAcquireLockPrefix
-
getAsyncJobsGlobalLockWaitTime
-
setAsyncJobsGlobalLockWaitTime
-
getAsyncJobsGlobalLockPollRate
-
setAsyncJobsGlobalLockPollRate
-
getAsyncJobsGlobalLockForceAcquireAfter
-
setAsyncJobsGlobalLockForceAcquireAfter
-
getTimerLockWaitTime
-
setTimerLockWaitTime
-
getTimerLockPollRate
-
setTimerLockPollRate
-
getTimerLockForceAcquireAfter
-
setTimerLockForceAcquireAfter
-
getResetExpiredJobsInterval
-
setResetExpiredJobsInterval
-
getResetExpiredJobsPageSize
public int getResetExpiredJobsPageSize() -
setResetExpiredJobsPageSize
public void setResetExpiredJobsPageSize(int resetExpiredJobsPageSize) -
getTenantId
-
setTenantId
-