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() |
static String |
getClientApplication() |
static String |
getNacosAccessKey() |
static String |
getNacosRamRoleNameKey() |
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) |
void |
register(InetSocketAddress address) |
void |
subscribe(String cluster,
com.alibaba.nacos.api.naming.listener.EventListener listener) |
void |
unregister(InetSocketAddress address) |
void |
unsubscribe(String cluster,
com.alibaba.nacos.api.naming.listener.EventListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaliveLookup, getServiceGroup, refreshAliveLookup, register, removeOfflineAddressesIfNecessary, unregisterpublic void register(InetSocketAddress address) throws Exception
register in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exceptionpublic void unregister(InetSocketAddress address) throws Exception
unregister in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exceptionpublic void subscribe(String cluster, com.alibaba.nacos.api.naming.listener.EventListener listener) throws Exception
subscribe in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exceptionpublic void unsubscribe(String cluster, com.alibaba.nacos.api.naming.listener.EventListener listener) throws Exception
unsubscribe in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exceptionpublic List<InetSocketAddress> lookup(String key) throws Exception
lookup in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>Exceptionpublic void close()
throws Exception
close in interface RegistryService<com.alibaba.nacos.api.naming.listener.EventListener>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 getNacosRamRoleNameKey()
public static String getClientApplication()
Copyright © 2025 Apache. All rights reserved.