public interface HealthCheck
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HealthCheck.Registration |
static class |
HealthCheck.Type |
| Modifier and Type | Field and Description |
|---|---|
static HealthCheck |
NOP |
| Modifier and Type | Method and Description |
|---|---|
default org.spf4j.base.avro.HealthRecord |
getRecord(String name,
String origin,
org.slf4j.Logger logger,
boolean isDebug,
boolean isDebugOnError) |
default HealthCheck.Type |
getType() |
String |
info() |
void |
test(org.slf4j.Logger logger)
Will run the health check.
|
default long |
timeout(TimeUnit tu) |
static final HealthCheck NOP
void test(org.slf4j.Logger logger) throws Exception
logger - Exceptiondefault org.spf4j.base.avro.HealthRecord getRecord(String name, String origin, org.slf4j.Logger logger, boolean isDebug, boolean isDebugOnError)
String info()
default HealthCheck.Type getType()
default long timeout(TimeUnit tu)
Copyright © 2020 SPF4J. All rights reserved.