Update custom HealthIndicator documentation

Update the custom HealthIndicator documentation to use the build()
method rather than the old mechanism.

Fixes gh-2270
pull/2272/head
Eric Dahl 10 years ago committed by Phillip Webb
parent 788b69d98d
commit aa43f5e037

@ -223,9 +223,9 @@ additional details to be displayed.
public Health health() {
int errorCode = check(); // perform some specific health check
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();
}
}

Loading…
Cancel
Save