public class AcquireAsyncJobsDueRunnable extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected AsyncExecutor |
asyncExecutor |
protected AcquireJobsRunnableConfiguration |
configuration |
protected boolean |
isInterrupted |
protected AtomicBoolean |
isWaiting |
protected JobInfoEntityManager<? extends JobInfoEntity> |
jobEntityManager |
protected AcquireAsyncJobsDueLifecycleListener |
lifecycleListener |
protected LockManager |
lockManager |
protected Object |
MONITOR |
protected String |
name |
| Constructor and Description |
|---|
AcquireAsyncJobsDueRunnable(String name,
AsyncExecutor asyncExecutor,
JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager,
AcquireAsyncJobsDueLifecycleListener lifecycleListener,
AcquireJobsRunnableConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
acquireAndExecuteJobs(CommandExecutor commandExecutor,
int remainingCapacity) |
protected LockManager |
createLockManager(CommandExecutor commandExecutor) |
protected long |
executeAcquireCycle(CommandExecutor commandExecutor) |
protected String |
getEngineName() |
AcquireAsyncJobsDueLifecycleListener |
getLifecycleListener() |
protected List<JobInfoEntity> |
offerJobs(List<? extends JobInfoEntity> acquiredJobs) |
void |
run() |
void |
setConfiguration(AcquireJobsRunnableConfiguration configuration) |
void |
setLifecycleListener(AcquireAsyncJobsDueLifecycleListener lifecycleListener) |
protected void |
sleep(long millisToWait) |
void |
stop() |
protected String name
protected final AsyncExecutor asyncExecutor
protected final JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager
protected AcquireAsyncJobsDueLifecycleListener lifecycleListener
protected AcquireJobsRunnableConfiguration configuration
protected LockManager lockManager
protected volatile boolean isInterrupted
protected final Object MONITOR
protected final AtomicBoolean isWaiting
public AcquireAsyncJobsDueRunnable(String name, AsyncExecutor asyncExecutor, JobInfoEntityManager<? extends JobInfoEntity> jobEntityManager, AcquireAsyncJobsDueLifecycleListener lifecycleListener, AcquireJobsRunnableConfiguration configuration)
protected LockManager createLockManager(CommandExecutor commandExecutor)
protected long executeAcquireCycle(CommandExecutor commandExecutor)
protected long acquireAndExecuteJobs(CommandExecutor commandExecutor, int remainingCapacity)
protected List<JobInfoEntity> offerJobs(List<? extends JobInfoEntity> acquiredJobs)
public void stop()
protected void sleep(long millisToWait)
protected String getEngineName()
public AcquireAsyncJobsDueLifecycleListener getLifecycleListener()
public void setLifecycleListener(AcquireAsyncJobsDueLifecycleListener lifecycleListener)
public void setConfiguration(AcquireJobsRunnableConfiguration configuration)
Copyright © 2021 Flowable. All rights reserved.