Package io.jans.casa.timer
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(int gap) getName()voidjobToBeExecuted(org.quartz.JobExecutionContext context) Methods inherited from class org.quartz.listeners.JobListenerSupport
getLog, jobExecutionVetoed, jobWasExecuted
-
Field Details
-
SCAN_INTERVAL_SECONDS
public static final int SCAN_INTERVAL_SECONDS- See Also:
-
-
Constructor Details
-
SyncSettingsTimer
public SyncSettingsTimer()
-
-
Method Details
-
activate
public void activate(int gap) -
getName
-
jobToBeExecuted
public void jobToBeExecuted(org.quartz.JobExecutionContext context) - Specified by:
jobToBeExecutedin interfaceorg.quartz.JobListener- Overrides:
jobToBeExecutedin classorg.quartz.listeners.JobListenerSupport
-