public class WatchServerChangedLocator extends Object implements org.springframework.core.Ordered, org.springframework.context.ApplicationListener<WatchServerChangedEvent>
监听服务变化事件,处理获取Server列表和接口列表
| 构造器和说明 |
|---|
WatchServerChangedLocator(com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery nacosServiceDiscovery,
PermissionServerApisClient serverApisClient,
String applicationName) |
public WatchServerChangedLocator(com.alibaba.cloud.nacos.discovery.NacosServiceDiscovery nacosServiceDiscovery,
PermissionServerApisClient serverApisClient,
String applicationName)
public void onApplicationEvent(WatchServerChangedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<WatchServerChangedEvent>event - the event to respond topublic int getOrder()
getOrder 在接口中 org.springframework.core.OrderedCopyright © 2020. All rights reserved.