public abstract class HealthCheckResponse
extends java.lang.Object
The HealthCheckResponse class is reserved for an extension by implementation providers. An application should use one of the static methods to create a Response instance using a HealthCheckResponseBuilder.
Modifier and Type | Class and Description |
---|---|
static class |
HealthCheckResponse.State |
Constructor and Description |
---|
HealthCheckResponse() |
Modifier and Type | Method and Description |
---|---|
static HealthCheckResponseBuilder |
builder() |
abstract java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> |
getData() |
abstract java.lang.String |
getName() |
abstract HealthCheckResponse.State |
getState() |
static HealthCheckResponseBuilder |
named(java.lang.String name) |
static void |
setResponseProvider(HealthCheckResponseProvider provider)
Used by OSGi environment while service loader pattern is not supported.
|
public static void setResponseProvider(HealthCheckResponseProvider provider)
provider
- the provider instance to use.public static HealthCheckResponseBuilder named(java.lang.String name)
public static HealthCheckResponseBuilder builder()
public abstract java.lang.String getName()
public abstract HealthCheckResponse.State getState()
public abstract java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> getData()