public class NacosWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
NacosWatch(NacosServiceManager nacosServiceManager,
NacosDiscoveryProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler) |
| Modifier and Type | Method and Description |
|---|---|
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(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.TaskScheduler> taskScheduler)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.Phasedpublic void nacosServicesWatch()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.