类 NacosServiceRegistry
java.lang.Object
com.alibaba.cloud.nacos.registry.NacosServiceRegistry
- 所有已实现的接口:
org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
public class NacosServiceRegistry
extends Object
implements org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
构造器概要
构造器构造器说明NacosServiceRegistry(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties nacosDiscoveryProperties) -
方法概要
修饰符和类型方法说明voidclose()voidderegister(org.springframework.cloud.client.serviceregistry.Registration registration) getStatus(org.springframework.cloud.client.serviceregistry.Registration registration) voidregister(org.springframework.cloud.client.serviceregistry.Registration registration) voidsetStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status)
-
构造器详细资料
-
NacosServiceRegistry
public NacosServiceRegistry(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties nacosDiscoveryProperties)
-
-
方法详细资料
-
register
public void register(org.springframework.cloud.client.serviceregistry.Registration registration) - 指定者:
register在接口中org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
deregister
public void deregister(org.springframework.cloud.client.serviceregistry.Registration registration) - 指定者:
deregister在接口中org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
close
public void close()- 指定者:
close在接口中org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
setStatus
public void setStatus(org.springframework.cloud.client.serviceregistry.Registration registration, String status) - 指定者:
setStatus在接口中org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-
getStatus
- 指定者:
getStatus在接口中org.springframework.cloud.client.serviceregistry.ServiceRegistry<org.springframework.cloud.client.serviceregistry.Registration>
-