类 NacosRegistry
- java.lang.Object
-
- org.apache.dubbo.registry.support.AbstractRegistry
-
- org.apache.dubbo.registry.support.FailbackRegistry
-
- org.apache.dubbo.registry.nacos.NacosRegistry
-
- 所有已实现的接口:
Node,Registry,RegistryService
public class NacosRegistry extends FailbackRegistry
NacosRegistry- 从以下版本开始:
- 2.6.5
- 另请参阅:
SERVICE_NAME_SEPARATOR,PAGINATION_SIZE,LOOKUP_INTERVAL
-
-
构造器概要
构造器 构造器 说明 NacosRegistry(URL url, NacosNamingServiceWrapper namingService)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddoRegister(URL url)voiddoSubscribe(URL url, NotifyListener listener)voiddoUnregister(URL url)voiddoUnsubscribe(URL url, NotifyListener listener)booleanisAvailable()List<URL>lookup(URL url)-
从类继承的方法 org.apache.dubbo.registry.support.FailbackRegistry
destroy, reExportRegister, reExportUnregister, register, removeFailedRegisteredTask, removeFailedSubscribed, removeFailedSubscribedTask, removeFailedUnregisteredTask, removeFailedUnsubscribedTask, subscribe, unregister, unsubscribe
-
从类继承的方法 org.apache.dubbo.registry.support.AbstractRegistry
doSaveProperties, getCacheFile, getCacheProperties, getCacheUrls, getLastCacheChanged, getNotified, getRegistered, getSubscribed, getUrl, toString
-
从接口继承的方法 org.apache.dubbo.registry.Registry
getDelay, isServiceDiscovery
-
-
-
-
构造器详细资料
-
NacosRegistry
public NacosRegistry(URL url, NacosNamingServiceWrapper namingService)
-
-
方法详细资料
-
isAvailable
public boolean isAvailable()
-
lookup
public List<URL> lookup(URL url)
- 指定者:
lookup在接口中RegistryService- 覆盖:
lookup在类中AbstractRegistry
-
doRegister
public void doRegister(URL url)
- 指定者:
doRegister在类中FailbackRegistry
-
doUnregister
public void doUnregister(URL url)
- 指定者:
doUnregister在类中FailbackRegistry
-
doSubscribe
public void doSubscribe(URL url, NotifyListener listener)
- 指定者:
doSubscribe在类中FailbackRegistry
-
doUnsubscribe
public void doUnsubscribe(URL url, NotifyListener listener)
- 指定者:
doUnsubscribe在类中FailbackRegistry
-
-