| 程序包 | 说明 |
|---|---|
| org.apache.dubbo.registry | |
| org.apache.dubbo.registry.client |
* The inspiration of service registration and discovery comes from
Spring Cloud Commons.
|
| org.apache.dubbo.registry.integration |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
NotifyListener.addServiceListener(ServiceInstancesChangedListener instanceListener) |
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
ServiceDiscovery.addServiceInstancesChangedListener(ServiceInstancesChangedListener listener)
Add an instance of
ServiceInstancesChangedListener for specified service
Default, current method will be invoked by the ServiceDiscoveryRegistry on the subscription, and it's mandatory to
add the ServiceInstancesChangedListener argument
into EventDispatcher whether the subclass implements same approach or not, thus this method is used to
trigger or adapt the vendor's change notification mechanism typically, like Zookeeper Watcher,
Nacos EventListener. |
default void |
ServiceDiscovery.removeServiceInstancesChangedListener(ServiceInstancesChangedListener listener)
unsubscribe to instances change event.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DynamicDirectory.addServiceListener(ServiceInstancesChangedListener instanceListener) |
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.