public class ResetExpiredJobsRunnable extends Object implements Runnable
Job entities 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.| Modifier and Type | Field and Description |
|---|---|
protected AsyncExecutor |
asyncExecutor |
protected boolean |
isInterrupted |
protected AtomicBoolean |
isWaiting |
protected Object |
MONITOR |
| Constructor and Description |
|---|
ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor) |
protected final AsyncExecutor asyncExecutor
protected volatile boolean isInterrupted
protected final Object MONITOR
protected final AtomicBoolean isWaiting
public ResetExpiredJobsRunnable(AsyncExecutor asyncExecutor)
Copyright © 2010–2018 Alfresco. All rights reserved.