public class NacosWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
| 构造器和说明 |
|---|
NacosWatch(NacosDiscoveryProperties properties) |
NacosWatch(NacosDiscoveryProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler)
The constructor with
NacosDiscoveryProperties bean and the optional. |
NacosWatch(NacosDiscoveryProperties properties,
org.springframework.scheduling.TaskScheduler taskScheduler) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
nacosServicesWatch() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public NacosWatch(NacosDiscoveryProperties properties)
public NacosWatch(NacosDiscoveryProperties properties, org.springframework.scheduling.TaskScheduler taskScheduler)
public NacosWatch(NacosDiscoveryProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler)
NacosDiscoveryProperties bean and the optional.
TaskScheduler beanproperties - NacosDiscoveryProperties beantaskScheduler - the optional TaskScheduler beanpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher 在接口中 org.springframework.context.ApplicationEventPublisherAwarepublic boolean isAutoStartup()
isAutoStartup 在接口中 org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop 在接口中 org.springframework.context.SmartLifecyclepublic void start()
start 在接口中 org.springframework.context.Lifecyclepublic void stop()
stop 在接口中 org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning 在接口中 org.springframework.context.Lifecyclepublic int getPhase()
getPhase 在接口中 org.springframework.context.PhasedgetPhase 在接口中 org.springframework.context.SmartLifecyclepublic void nacosServicesWatch()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.