public class ZookeeperServiceDiscoveryChangeWatcher extends Object implements org.apache.curator.framework.api.CuratorWatcher
ServiceDiscovery Change watcher only interests in
Watcher.Event.EventType#NodeChildrenChanged and Watcher.Event.EventType#NodeDataChanged event types,
which will multicast a ServiceInstancesChangedEvent when the service node has been changed.| Constructor and Description |
|---|
ZookeeperServiceDiscoveryChangeWatcher(ZookeeperServiceDiscovery zookeeperServiceDiscovery,
String serviceName,
ServiceInstancesChangedListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(org.apache.zookeeper.WatchedEvent event) |
boolean |
shouldKeepWatching() |
void |
stopWatching() |
public ZookeeperServiceDiscoveryChangeWatcher(ZookeeperServiceDiscovery zookeeperServiceDiscovery, String serviceName, ServiceInstancesChangedListener listener)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.