Package io.dropwizard.health.response
Class JsonHealthResponseProviderFactory
- java.lang.Object
-
- io.dropwizard.health.response.JsonHealthResponseProviderFactory
-
- All Implemented Interfaces:
HealthResponseProviderFactory
,Discoverable
public class JsonHealthResponseProviderFactory extends Object implements HealthResponseProviderFactory
-
-
Constructor Summary
Constructors Constructor Description JsonHealthResponseProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
build
public HealthResponseProvider build(HealthStatusChecker healthStatusChecker, HealthStateAggregator healthStateAggregator, com.fasterxml.jackson.databind.ObjectMapper mapper)
Description copied from interface:HealthResponseProviderFactory
Configures a health responder for responding to health check requests (e.g. from load balancer).- Specified by:
build
in interfaceHealthResponseProviderFactory
- Parameters:
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).
-
-