Commit 161cb7ab authored by Phillip Webb's avatar Phillip Webb

Merge pull request #2270 from ericdahl/docs-health-builder

* docs-health-builder:
  Update custom HealthIndicator documentation
parents 788b69d9 aa43f5e0
...@@ -223,9 +223,9 @@ additional details to be displayed. ...@@ -223,9 +223,9 @@ additional details to be displayed.
public Health health() { public Health health() {
int errorCode = check(); // perform some specific health check int errorCode = check(); // perform some specific health check
if (errorCode != 0) { if (errorCode != 0) {
return Health.down().withDetail("Error Code", errorCode); return Health.down().withDetail("Error Code", errorCode).build();
} }
return Health.up(); return Health.up().build();
} }
} }
......
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