Class ResetExpiredJobsRunnable

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    TenantAwareResetExpiredJobsRunnable

    public class ResetExpiredJobsRunnable
    extends java.lang.Object
    implements java.lang.Runnable
    Runnable that checks the 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.
    • Field Detail

      • 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)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • stop

        public void stop()