Class ReactiveDiscoveryClientHealthIndicator
java.lang.Object
org.springframework.cloud.client.discovery.health.reactive.ReactiveDiscoveryClientHealthIndicator
- All Implemented Interfaces:
EventListener,ReactiveDiscoveryHealthIndicator,org.springframework.context.ApplicationListener<InstanceRegisteredEvent<?>>,org.springframework.core.Ordered
public class ReactiveDiscoveryClientHealthIndicator
extends Object
implements ReactiveDiscoveryHealthIndicator, org.springframework.core.Ordered, org.springframework.context.ApplicationListener<InstanceRegisteredEvent<?>>
A health indicator which indicates whether the discovery client has been initialized.
- Author:
- Tim Ysewyn, Chris Bono, Olga Maciaszek-Sharma
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionReactiveDiscoveryClientHealthIndicator(ReactiveDiscoveryClient discoveryClient, DiscoveryClientHealthIndicatorProperties properties) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Provide the name of health indicator.intgetOrder()reactor.core.publisher.Mono<org.springframework.boot.actuate.health.Health>health()Provide the indicator of health.voidonApplicationEvent(InstanceRegisteredEvent<?> event) voidsetOrder(int order)
-
Constructor Details
-
ReactiveDiscoveryClientHealthIndicator
public ReactiveDiscoveryClientHealthIndicator(ReactiveDiscoveryClient discoveryClient, DiscoveryClientHealthIndicatorProperties properties)
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<InstanceRegisteredEvent<?>>
-
health
public reactor.core.publisher.Mono<org.springframework.boot.actuate.health.Health> health()Description copied from interface:ReactiveDiscoveryHealthIndicatorProvide the indicator of health.- Specified by:
healthin interfaceReactiveDiscoveryHealthIndicator- Returns:
- a
Monothat provides theHealth
-
getName
Description copied from interface:ReactiveDiscoveryHealthIndicatorProvide the name of health indicator.- Specified by:
getNamein interfaceReactiveDiscoveryHealthIndicator- Returns:
- a
Stringthat provides the name of health indicator, usually the name of the implementation.
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-