public class SofaRegistryServiceImpl extends Object implements RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>
CONFIG_SPLIT_CHAR, PREFIX_SERVICE_MAPPING, PREFIX_SERVICE_ROOT, SERVICE_GROUP_NAME| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
void |
register(InetSocketAddress address)
Register.
|
void |
subscribe(String cluster,
com.alipay.sofa.registry.client.api.SubscriberDataObserver listener)
Subscribe.
|
void |
unregister(InetSocketAddress address)
Unregister.
|
void |
unsubscribe(String cluster,
com.alipay.sofa.registry.client.api.SubscriberDataObserver listener)
Unsubscribe.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceGrouppublic void register(InetSocketAddress address) throws Exception
RegistryServiceregister 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>address - the addressException - the exceptionpublic void unregister(InetSocketAddress address) throws Exception
RegistryServiceunregister 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>address - the addressException - the exceptionpublic void subscribe(String cluster, com.alipay.sofa.registry.client.api.SubscriberDataObserver listener) throws Exception
RegistryServicesubscribe 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>cluster - the clusterlistener - the listenerException - the exceptionpublic void unsubscribe(String cluster, com.alipay.sofa.registry.client.api.SubscriberDataObserver listener) throws Exception
RegistryServiceunsubscribe 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>cluster - the clusterlistener - the listenerException - the exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
RegistryServicelookup 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>key - the keyException - the exceptionpublic void close()
throws Exception
RegistryServiceclose 在接口中 RegistryService<com.alipay.sofa.registry.client.api.SubscriberDataObserver>ExceptionCopyright © 2020 Seata. All rights reserved.