public class NacosRegistryServiceImpl extends Object implements RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>
CONFIG_SPLIT_CHAR, CURRENT_ADDRESS_MAP, PREFIX_SERVICE_MAPPING, PREFIX_SERVICE_ROOT, SERVICE_GROUP_NAME| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close.
|
static String |
getClientApplication() |
static String |
getNacosAccessKey() |
static String |
getNacosSecretKey() |
static com.alibaba.nacos.api.naming.NamingService |
getNamingInstance()
Gets naming instance.
|
static com.alibaba.nacos.api.naming.NamingMaintainService |
getNamingMaintainInstance() |
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
void |
register(InetSocketAddress address)
Register.
|
void |
subscribe(String cluster,
com.alibaba.nacos.api.naming.listener.EventListener listener)
Subscribe.
|
void |
unregister(InetSocketAddress address)
Unregister.
|
void |
unsubscribe(String cluster,
com.alibaba.nacos.api.naming.listener.EventListener listener)
Unsubscribe.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaliveLookup, getServiceGroup, refreshAliveLookuppublic void register(InetSocketAddress address) throws Exception
RegistryServiceregister in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>address - the addressException - the exceptionpublic void unregister(InetSocketAddress address) throws Exception
RegistryServiceunregister in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>address - the addressException - the exceptionpublic void subscribe(String cluster, com.alibaba.nacos.api.naming.listener.EventListener listener) throws Exception
RegistryServicesubscribe in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>cluster - the clusterlistener - the listenerException - the exceptionpublic void unsubscribe(String cluster, com.alibaba.nacos.api.naming.listener.EventListener listener) throws Exception
RegistryServiceunsubscribe in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>cluster - the clusterlistener - the listenerException - the exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
RegistryServicelookup in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>key - the keyException - the exceptionpublic void close()
throws Exception
RegistryServiceclose in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exception - the exceptionpublic static com.alibaba.nacos.api.naming.NamingService getNamingInstance()
throws Exception
Exception - the exceptionpublic static com.alibaba.nacos.api.naming.NamingMaintainService getNamingMaintainInstance()
throws Exception
Exceptionpublic static String getNacosAccessKey()
public static String getNacosSecretKey()
public static String getClientApplication()
Copyright © 2023 Seata. All rights reserved.