Commit 1b59e88a authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

See gh-10881
parent 616bada6
...@@ -476,15 +476,19 @@ The following table shows the default status mappings for the built-in statuses: ...@@ -476,15 +476,19 @@ The following table shows the default status mappings for the built-in statuses:
|No mapping by default, so http status is 200 |No mapping by default, so http status is 200
|=== |===
[[reactive-health-indicators]] [[reactive-health-indicators]]
==== ReactiveHealthIndicators ==== Reactive Health Indicators
For reactive applications, such as those using Spring WebFlux, ReactiveHealthIndicators provide a For reactive applications, such as those using Spring WebFlux, ReactiveHealthIndicators
non-blocking contract for getting application health. Similar to traditional HealthIndicators, provide a non-blocking contract for getting application health. Similar to a traditional
health information is collected from all {sc-spring-boot-actuator}/health/ReactiveHealthIndicator.{sc-ext}[`ReactiveHealthIndicator`] `HealthIndicator`, health information is collected from all
beans defined in your `ApplicationContext`. Spring Boot adds autoconfiguration for `RedisReactiveHealthIndicator`. {sc-spring-boot-actuator}/health/ReactiveHealthIndicator.{sc-ext}[`ReactiveHealthIndicator`]
Regular HealthIndicators that do not check against a reactive API are executed on the elastic scheduler. beans defined in your `ApplicationContext`. Regular HealthIndicators that do not check
against a reactive API are included and executed on the elastic scheduler.
To provide custom health information from a reactive API, you can register Spring beans that implement the
To provide custom health information from a reactive API, you can register Spring beans
that implement the
{sc-spring-boot-actuator}/health/ReactiveHealthIndicator.{sc-ext}[`ReactiveHealthIndicator`] interface. {sc-spring-boot-actuator}/health/ReactiveHealthIndicator.{sc-ext}[`ReactiveHealthIndicator`] interface.
The following code shows a sample `ReactiveHealthIndicator` implementation: The following code shows a sample `ReactiveHealthIndicator` implementation:
...@@ -502,6 +506,11 @@ The following code shows a sample `ReactiveHealthIndicator` implementation: ...@@ -502,6 +506,11 @@ The following code shows a sample `ReactiveHealthIndicator` implementation:
} }
---- ----
TIP: To handle the error automatically, consider extending from
`AbstractReactiveHealthIndicator`.
[[production-ready-application-info]] [[production-ready-application-info]]
=== Application Information === Application Information
Application information exposes various information collected from all Application information exposes various information collected from all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment