Class ResetExpiredJobsRunnable
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.ResetExpiredJobsRunnable
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
TenantAwareResetExpiredJobsRunnable
public class ResetExpiredJobsRunnable extends Object implements Runnable
Runnable that checks theJobentities periodically for 'expired' jobs. When a job is executed, it is first locked (lock owner and lock time is set). A job is expired when this lock time is exceeded. This can happen when an executor goes down before completing a task. This runnable will find such jobs and reset them, so they can be picked up again.
-
-
Field Summary
Fields Modifier and Type Field Description protected AsyncExecutorasyncExecutorprotected booleanisInterruptedprotected AtomicBooleanisWaitingprotected ObjectMONITOR
-
Constructor Summary
Constructors Constructor Description ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor)
-
-
-
Field Detail
-
asyncExecutor
protected final AsyncExecutor asyncExecutor
-
isInterrupted
protected volatile boolean isInterrupted
-
MONITOR
protected final Object MONITOR
-
isWaiting
protected final AtomicBoolean isWaiting
-
-
Constructor Detail
-
ResetExpiredJobsRunnable
public ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor)
-
-