public class NacosServerApplicationService extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, com.alibaba.nacos.api.naming.listener.EventListener, org.springframework.context.ApplicationEventPublisherAware
Subscribe to changes in the list of client services in nacos
| 构造器和说明 |
|---|
NacosServerApplicationService(com.alibaba.nacos.api.naming.NamingService namingService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
onEvent(com.alibaba.nacos.api.naming.listener.Event event) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
public NacosServerApplicationService(com.alibaba.nacos.api.naming.NamingService namingService)
public void onEvent(com.alibaba.nacos.api.naming.listener.Event event)
onEvent 在接口中 com.alibaba.nacos.api.naming.listener.EventListenerpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher 在接口中 org.springframework.context.ApplicationEventPublisherAwarepublic void destroy()
throws Exception
destroy 在接口中 org.springframework.beans.factory.DisposableBeanExceptionCopyright © 2020. All rights reserved.