Class ResetExpiredJobsRunnable
- java.lang.Object
-
- org.activiti.engine.impl.asyncexecutor.ResetExpiredJobsRunnable
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
TenantAwareResetExpiredJobsRunnable
public class ResetExpiredJobsRunnable extends java.lang.Object implements java.lang.RunnableRunnable 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 java.util.concurrent.atomic.AtomicBooleanisWaitingprotected java.lang.ObjectMONITOR
-
Constructor Summary
Constructors Constructor Description ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()voidstop()
-
-
-
Field Detail
-
asyncExecutor
protected final AsyncExecutor asyncExecutor
-
isInterrupted
protected volatile boolean isInterrupted
-
MONITOR
protected final java.lang.Object MONITOR
-
isWaiting
protected final java.util.concurrent.atomic.AtomicBoolean isWaiting
-
-
Constructor Detail
-
ResetExpiredJobsRunnable
public ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor)
-
-