Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1b59e88a
Commit
1b59e88a
authored
Nov 22, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
See gh-10881
parent
616bada6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+17
-8
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
1b59e88a
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment