public class DefaultConfigChangeObserver extends Object
| Constructor and Description |
|---|
DefaultConfigChangeObserver()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfigurationUpdate() |
void |
enableMonitoring(boolean enable) |
long |
getCheckPeriod() |
boolean |
isMonitoring() |
void |
setCheckPeriod(long checkPeriod)
Sets the new check period, cancels the currently running timer and schedules a new task with the new checkperiod
and a startup delay of 500ms.
|
public DefaultConfigChangeObserver()
public void checkConfigurationUpdate()
public long getCheckPeriod()
public boolean isMonitoring()
public void enableMonitoring(boolean enable)
public void setCheckPeriod(long checkPeriod)
checkPeriod - the period in ms, for checking on changes.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.