public class JsonHealthResponseProviderFactory extends Object implements HealthResponseProviderFactory
Constructor and Description |
---|
JsonHealthResponseProviderFactory() |
Modifier and Type | Method and Description |
---|---|
HealthResponseProvider |
build(HealthStatusChecker healthStatusChecker,
HealthStateAggregator healthStateAggregator,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Configures a health responder for responding to health check requests (e.g.
|
public HealthResponseProvider build(HealthStatusChecker healthStatusChecker, HealthStateAggregator healthStateAggregator, com.fasterxml.jackson.databind.ObjectMapper mapper)
HealthResponseProviderFactory
build
in interface HealthResponseProviderFactory
healthStatusChecker
- an interface that exposes the ability to check current status of health.healthStateAggregator
- an interface that exposes the ability to check an aggregate view of all health
states.mapper
- A Jackson object mapper to allow writing JSON responses (if needed).Copyright © 2011. All rights reserved.