com.netflix.config
Class FixedDelayPollingScheduler
java.lang.Object
com.netflix.config.AbstractPollingScheduler
com.netflix.config.FixedDelayPollingScheduler
public class FixedDelayPollingScheduler
- extends AbstractPollingScheduler
Field Summary |
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. |
Method Summary |
protected void |
schedule(java.lang.Runnable runnable)
This method is implemented with
ScheduledExecutorService.scheduleWithFixedDelay(Runnable, long, long, TimeUnit) |
void |
stop()
Stop the scheduler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INITIAL_DELAY_PROPERTY
public static final java.lang.String INITIAL_DELAY_PROPERTY
- System property name to define the initial delay in milliseconds.
- See Also:
- Constant Field Values
DELAY_PROPERTY
public static final java.lang.String DELAY_PROPERTY
- System property name to define the delay in milliseconds.
- See Also:
- Constant Field Values
FixedDelayPollingScheduler
public 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
public FixedDelayPollingScheduler(int initialDelayMillis,
int delayMillis,
boolean ignoreDeletesFromSource)
- Parameters:
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.
schedule
protected void schedule(java.lang.Runnable runnable)
- This method is implemented with
ScheduledExecutorService.scheduleWithFixedDelay(Runnable, long, long, TimeUnit)
- Specified by:
schedule
in class AbstractPollingScheduler
- Parameters:
runnable
- The runnable to be scheduled.
stop
public void stop()
- Description copied from class:
AbstractPollingScheduler
- Stop the scheduler
- Specified by:
stop
in class AbstractPollingScheduler