public abstract class DynamicDirectory<T> extends AbstractDirectory<T> implements NotifyListener
| 构造器和说明 |
|---|
DynamicDirectory(Class<T> serviceType,
URL url) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addServiceListener(ServiceInstancesChangedListener instanceListener) |
void |
buildRouterChain(URL url) |
void |
destroy() |
void |
discordAddresses() |
List<org.apache.dubbo.rpc.Invoker<T>> |
doList(org.apache.dubbo.rpc.Invocation invocation) |
List<org.apache.dubbo.rpc.Invoker<T>> |
getAllInvokers() |
URL |
getConsumerUrl() |
Class<T> |
getInterface() |
List<org.apache.dubbo.rpc.Invoker<T>> |
getInvokers() |
URL |
getRegisteredConsumerUrl() |
Registry |
getRegistry() |
boolean |
isShouldRegister() |
void |
setInvokersChangedListener(InvokersChangedListener listener) |
void |
setProtocol(org.apache.dubbo.rpc.Protocol protocol) |
void |
setRegisteredConsumerUrl(URL url) |
void |
setRegistry(Registry registry) |
void |
subscribe(URL url) |
void |
unSubscribe(URL url) |
getRouterChain, getSubscribeConsumerurl, getUrl, isDestroyed, list, setConsumerUrl, setRouterChainnotifyisAvailablepublic void addServiceListener(ServiceInstancesChangedListener instanceListener)
addServiceListener 在接口中 NotifyListenerpublic void setProtocol(org.apache.dubbo.rpc.Protocol protocol)
public void setRegistry(Registry registry)
public Registry getRegistry()
public boolean isShouldRegister()
public void subscribe(URL url)
public void unSubscribe(URL url)
public List<org.apache.dubbo.rpc.Invoker<T>> doList(org.apache.dubbo.rpc.Invocation invocation)
doList 在类中 AbstractDirectory<T>public Class<T> getInterface()
getInterface 在接口中 Directory<T>public List<org.apache.dubbo.rpc.Invoker<T>> getAllInvokers()
getAllInvokers 在接口中 Directory<T>public URL getConsumerUrl()
getConsumerUrl 在接口中 Directory<T>getConsumerUrl 在类中 AbstractDirectory<T>public URL getRegisteredConsumerUrl()
public void setRegisteredConsumerUrl(URL url)
public void buildRouterChain(URL url)
public void destroy()
destroy 在接口中 Nodedestroy 在类中 AbstractDirectory<T>public void discordAddresses()
discordAddresses 在接口中 Directory<T>discordAddresses 在类中 AbstractDirectory<T>public void setInvokersChangedListener(InvokersChangedListener listener)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.