Class RunningJobsCache

java.lang.Object
io.jmix.quartz.service.RunningJobsCache

@Component("quartz_RunningJobsCache") public class RunningJobsCache extends Object
Currently running jobs store
  • Field Details

    • jobDetails

      protected org.springframework.cache.Cache jobDetails
    • cacheManager

      @Autowired protected org.springframework.cache.CacheManager cacheManager
    • cacheOperations

      @Autowired protected CacheOperations cacheOperations
    • CACHE_NAME

      public static final String CACHE_NAME
      See Also:
  • Constructor Details

    • RunningJobsCache

      public RunningJobsCache()
  • Method Details

    • init

      @PostConstruct protected void init()
    • isJobRunning

      public boolean isJobRunning(org.quartz.JobKey jobKey)
      Checks if job has at least one running trigger
      Parameters:
      jobKey - Job key
      Returns:
      true if there is running trigger, false otherwise.
    • getRunningTriggers

      public Set<org.quartz.TriggerKey> getRunningTriggers(org.quartz.JobKey key)
    • put

      public void put(org.quartz.JobKey jobKey, org.quartz.TriggerKey triggerKey)
    • invalidate

      public void invalidate(org.quartz.JobKey jobKey, org.quartz.TriggerKey triggerKey)
    • invalidate

      public void invalidate(org.quartz.JobKey jobKey)
      Remove all running triggers for provided job from cache
      Parameters:
      jobKey - Job key
    • invalidateAll

      public void invalidateAll()
      Invalidate entire cache