Class SyncSettingsTimer

java.lang.Object
org.quartz.listeners.JobListenerSupport
io.jans.casa.timer.SyncSettingsTimer
All Implemented Interfaces:
org.quartz.JobListener

@ApplicationScoped public class SyncSettingsTimer extends org.quartz.listeners.JobListenerSupport
A timer useful in environments of several nodes (eg. containers). It allows managed beans that have injected a MainSettings object to have it in (nearly) up-to-date state. As an example, in a 2 node setting, node X may have saved changes in the settings, but there is no means node Y can refresh the contents of the injected instance automatically. This timer helps to solve this problem.
Author:
jgomer
  • Field Details

  • Constructor Details

    • SyncSettingsTimer

      public SyncSettingsTimer()
  • Method Details

    • activate

      public void activate(int gap)
    • getName

      public String getName()
    • jobToBeExecuted

      public void jobToBeExecuted(org.quartz.JobExecutionContext context)
      Specified by:
      jobToBeExecuted in interface org.quartz.JobListener
      Overrides:
      jobToBeExecuted in class org.quartz.listeners.JobListenerSupport