public class NacosWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
NacosWatch(NacosDiscoveryProperties properties) |
NacosWatch(NacosDiscoveryProperties properties,
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(NacosDiscoveryProperties properties)
public NacosWatch(NacosDiscoveryProperties properties, 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.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void nacosServicesWatch()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.