public class FileConfigurationMonitor extends Object implements ConfigurationMonitor
Constructor and Description |
---|
FileConfigurationMonitor(Reconfigurable reconfigurable,
File file,
List<ConfigurationListener> listeners,
int intervalSeconds)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkConfiguration()
Called to determine if the configuration has changed.
|
public FileConfigurationMonitor(Reconfigurable reconfigurable, File file, List<ConfigurationListener> listeners, int intervalSeconds)
reconfigurable
- The Configuration that can be reconfigured.file
- The File to monitor.listeners
- The List of ConfigurationListeners to notify upon a change.intervalSeconds
- The monitor interval in seconds. The minimum interval is 5 seconds.public void checkConfiguration()
checkConfiguration
in interface ConfigurationMonitor
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.