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.| 构造器和说明 |
|---|
ZookeeperServiceDiscoveryChangeWatcher(ZookeeperServiceDiscovery zookeeperServiceDiscovery,
String serviceName,
ServiceInstancesChangedListener listener) |
public ZookeeperServiceDiscoveryChangeWatcher(ZookeeperServiceDiscovery zookeeperServiceDiscovery, String serviceName, ServiceInstancesChangedListener listener)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.