@Component public class CloudFoundryHeartbeatSender extends Object implements org.springframework.context.ApplicationEventPublisherAware
HeartbeatEvent listing the available services as its state
indicator. If consumers detect a change it means there is a change in the catalog.| Constructor and Description |
|---|
CloudFoundryHeartbeatSender(CloudFoundryDiscoveryClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
poll() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
public CloudFoundryHeartbeatSender(CloudFoundryDiscoveryClient client)
@Scheduled(fixedDelayString="${spring.cloud.cloudfoundry.discovery.heartbeatFrequency:5000}")
public void poll()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwareCopyright © 2021 Pivotal Software, Inc.. All rights reserved.