Package org.apache.dubbo.registry.nacos
Class NacosServiceDiscovery
java.lang.Object
org.apache.dubbo.registry.client.AbstractServiceDiscovery
org.apache.dubbo.registry.nacos.NacosServiceDiscovery
- All Implemented Interfaces:
Comparable<Prioritized>,Prioritized,ServiceDiscovery,RegistryService
Nacos
ServiceDiscovery implementation- Since:
- 2.7.5
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoiddoRegister(ServiceInstance serviceInstance) voiddoUnregister(ServiceInstance serviceInstance) getInstances(String serviceName) getUrl()voidMethods inherited from class org.apache.dubbo.registry.client.AbstractServiceDiscovery
destroy, getLocalInstance, getLocalMetadata, getLocalMetadata, getRemoteMetadata, getRemoteMetadata, isDestroy, lookup, register, register, subscribe, unregister, unregister, unsubscribe, updateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.lang.Prioritized
compareTo, getPriorityMethods inherited from interface org.apache.dubbo.registry.client.ServiceDiscovery
createListener, getDelay, isAvailable, toString
-
Constructor Details
-
NacosServiceDiscovery
-
-
Method Details
-
doDestroy
- Throws:
Exception
-
doRegister
-
doUnregister
- Throws:
RuntimeException
-
getServices
-
getInstances
- Throws:
NullPointerException
-
addServiceInstancesChangedListener
public void addServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws NullPointerException, IllegalArgumentException -
removeServiceInstancesChangedListener
public void removeServiceInstancesChangedListener(ServiceInstancesChangedListener listener) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
getUrl
- Specified by:
getUrlin interfaceServiceDiscovery- Overrides:
getUrlin classAbstractServiceDiscovery
-