Class LockManager


  • public class LockManager
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void lockJob​(org.quartz.JobDetail job)
      Lock job if it doesn't allow concurrent executions.
      boolean relockExpired​(org.quartz.TriggerKey key)
      Relock trigger if its lock has expired.
      boolean tryLock​(org.quartz.TriggerKey key)
      Try to lock given trigger, ignoring errors.
      void unlockAcquiredTrigger​(org.quartz.spi.OperableTrigger trigger)  
      void unlockExpired​(org.quartz.JobDetail job)
      Unlock job that have existing, expired lock.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • lockJob

        public void lockJob​(org.quartz.JobDetail job)
        Lock job if it doesn't allow concurrent executions.
        Parameters:
        job - job to lock
      • unlockAcquiredTrigger

        public void unlockAcquiredTrigger​(org.quartz.spi.OperableTrigger trigger)
      • unlockExpired

        public void unlockExpired​(org.quartz.JobDetail job)
        Unlock job that have existing, expired lock.
        Parameters:
        job - job to potentially unlock
      • tryLock

        public boolean tryLock​(org.quartz.TriggerKey key)
        Try to lock given trigger, ignoring errors.
        Parameters:
        key - trigger to lock
        Returns:
        true when successfully locked, false otherwise
      • relockExpired

        public boolean relockExpired​(org.quartz.TriggerKey key)
        Relock trigger if its lock has expired.
        Parameters:
        key - trigger to lock
        Returns:
        true when successfully relocked