public class FixedDelayPollingScheduler extends AbstractPollingScheduler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DELAY_PROPERTY
System property name to define the delay in milliseconds.
|
static java.lang.String |
INITIAL_DELAY_PROPERTY
System property name to define the initial delay in milliseconds.
|
| Constructor and Description |
|---|
FixedDelayPollingScheduler()
Create an instance with initial delay and delay defined in system properties
"archaius.fixedDelayPollingScheduler.initialDelayMills" and "archaius.fixedDelayPollingScheduler.delayMills"
The scheduler will delete the property in a configuration if it is absent from the configuration source.
|
FixedDelayPollingScheduler(int initialDelayMillis,
int delayMillis,
boolean ignoreDeletesFromSource) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
schedule(java.lang.Runnable runnable)
This method is implemented with
ScheduledExecutorService.scheduleWithFixedDelay(Runnable, long, long, TimeUnit) |
void |
stop()
Stop the scheduler
|
addPollListener, getNextCheckPoint, getPollingRunnable, initialLoad, isIgnoreDeletesFromSource, populateProperties, removePollListener, setIgnoreDeletesFromSource, startPollingpublic static final java.lang.String INITIAL_DELAY_PROPERTY
public static final java.lang.String DELAY_PROPERTY
public FixedDelayPollingScheduler()
public FixedDelayPollingScheduler(int initialDelayMillis,
int delayMillis,
boolean ignoreDeletesFromSource)
initialDelayMillis - initial delay in millisecondsdelayMillis - delay in millisecondsignoreDeletesFromSource - whether the scheduler should ignore deletes of properties from configuration source when
applying the polling result to a configuration.protected void schedule(java.lang.Runnable runnable)
ScheduledExecutorService.scheduleWithFixedDelay(Runnable, long, long, TimeUnit)schedule in class AbstractPollingSchedulerrunnable - The runnable to be scheduled.public void stop()
AbstractPollingSchedulerstop in class AbstractPollingScheduler