public interface ConfigurationUpdateWatcher
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ConfigurationUpdateWatcher.UpdateableService |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfigVersions()
compare cluster versions of configurations with local versions and update local deployment.
|
void |
configDeleted(java.lang.String configName)
Send delete notification, call on custom configuration remove.
|
void |
configLoadedOnStart(java.lang.String configName,
java.lang.String timestamp)
Initialize notification structure for configuration, call on initial load on service start.
|
void |
configUpdated(java.lang.String configName,
java.lang.String timestamp)
Send update notification, call on custom configuration creation or update.
|
void |
registerService(ConfigurationUpdateWatcher.UpdateableService service)
register a service to be notified on configuration updates.
|
void |
startPolling()
start polling for updates.
|
void |
startPolling(int pollIntervalSeconds)
start polling for updates with custom interval.
|
boolean |
startWatching()
install a ZK watch on the root node to get notifications about changes.
|
void |
stopPolling()
stop polling for updates.
|
void |
stopWatching()
stop watching: ZK watch on root node will not be reinstalled.
|
void registerService(ConfigurationUpdateWatcher.UpdateableService service)
boolean startWatching()
void stopWatching()
void startPolling()
void startPolling(int pollIntervalSeconds)
void stopPolling()
void configLoadedOnStart(java.lang.String configName,
java.lang.String timestamp)
void configUpdated(java.lang.String configName,
java.lang.String timestamp)
void configDeleted(java.lang.String configName)
void checkConfigVersions()