public class GatewayLocatorHeartBeatPublisher extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
GatewayLocatorHeartBeatPublisher(NacosDiscoveryProperties nacosDiscoveryProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
publishHeartBeat()
nacos doesn't support watch now , publish an event every 30 seconds.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
start() |
void |
stop() |
public GatewayLocatorHeartBeatPublisher(NacosDiscoveryProperties nacosDiscoveryProperties)
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void publishHeartBeat()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.