public final class HealthCheckResultBuilder extends Object implements Builder<HealthCheck.Result>
HealthCheck
result.Modifier and Type | Method and Description |
---|---|
HealthCheck.Result |
build() |
Object |
detail(String key) |
HealthCheckResultBuilder |
detail(String key,
Object value) |
HealthCheckResultBuilder |
details(Map<String,Object> details) |
HealthCheckResultBuilder |
down() |
Throwable |
error() |
HealthCheckResultBuilder |
error(Throwable error) |
String |
message() |
HealthCheckResultBuilder |
message(String message) |
static HealthCheckResultBuilder |
on(HealthCheck check) |
HealthCheck.State |
state() |
HealthCheckResultBuilder |
state(HealthCheck.State state) |
String |
toString() |
HealthCheckResultBuilder |
unknown() |
HealthCheckResultBuilder |
up() |
public String message()
public HealthCheckResultBuilder message(String message)
public Throwable error()
public HealthCheckResultBuilder error(Throwable error)
public HealthCheckResultBuilder detail(String key, Object value)
public HealthCheckResultBuilder details(Map<String,Object> details)
public HealthCheck.State state()
public HealthCheckResultBuilder state(HealthCheck.State state)
public HealthCheckResultBuilder up()
public HealthCheckResultBuilder down()
public HealthCheckResultBuilder unknown()
public HealthCheck.Result build()
build
in interface Builder<HealthCheck.Result>
public static HealthCheckResultBuilder on(HealthCheck check)
Apache Camel