public class NacosWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
NacosWatch(NacosServiceManager nacosServiceManager,
NacosDiscoveryProperties properties) |
NacosWatch(NacosServiceManager nacosServiceManager,
NacosDiscoveryProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler> taskScheduler)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
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)
@Deprecated public NacosWatch(NacosServiceManager nacosServiceManager, NacosDiscoveryProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler> 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()
public void destroy()
destroy in interface org.springframework.beans.factory.DisposableBeanCopyright © 2022 Pivotal Software, Inc.. All rights reserved.