Interface ReactiveHealthContributor
- All Known Subinterfaces:
CompositeReactiveHealthContributor, ReactiveHealthIndicator
- All Known Implementing Classes:
AbstractReactiveHealthIndicator, CassandraDriverReactiveHealthIndicator, ConnectionFactoryHealthIndicator, CouchbaseReactiveHealthIndicator, DataElasticsearchReactiveHealthIndicator, DataRedisReactiveHealthIndicator, MongoReactiveHealthIndicator, Neo4jReactiveHealthIndicator
public sealed interface ReactiveHealthContributor
permits ReactiveHealthIndicator, CompositeReactiveHealthContributor
Contributes health information, either directly (
ReactiveHealthIndicator) or
via other contributors (CompositeReactiveHealthContributor).- Since:
- 4.0.0
- Author:
- Phillip Webb, Stephane Nicoll
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ReactiveHealthContributoradapt(@Nullable HealthContributor contributor) Adapts the givenHealthContributorinto aReactiveHealthContributorby scheduling blocking calls toSchedulers.boundedElastic().Return this reactive contributor as a standard blockingHealthContributor.
-
Method Details
-
asHealthContributor
HealthContributor asHealthContributor()Return this reactive contributor as a standard blockingHealthContributor.- Returns:
- a blocking health contributor
-
adapt
@Contract("!null -> !null") static @Nullable ReactiveHealthContributor adapt(@Nullable HealthContributor contributor) Adapts the givenHealthContributorinto aReactiveHealthContributorby scheduling blocking calls toSchedulers.boundedElastic().- Parameters:
contributor- the contributor to adapt ornull- Returns:
- the adapted contributor
-