Modifier and Type | Class and Description |
---|---|
static class |
HealthCheckConfiguration.Builder |
Modifier and Type | Field and Description |
---|---|
static Boolean |
DEFAULT_VALUE_ENABLED |
static Integer |
DEFAULT_VALUE_FAILURE_THRESHOLD |
static Duration |
DEFAULT_VALUE_INTERVAL |
Constructor and Description |
---|
HealthCheckConfiguration() |
Modifier and Type | Method and Description |
---|---|
static HealthCheckConfiguration.Builder |
builder() |
HealthCheckConfiguration |
copy() |
static Boolean |
defaultValueEnabled() |
static Integer |
defaultValueFailureThreshold() |
static Duration |
defaultValueInterval() |
Integer |
getFailureThreshold() |
Duration |
getInterval() |
Boolean |
isEnabled() |
void |
setEnabled(Boolean enabled)
Set if the check associated to this configuration is enabled or not.
|
void |
setFailureThreshold(Integer failureThreshold)
Set the number of failure before reporting the service as un-healthy.
|
void |
setInterval(Duration interval)
Set the check interval.
|
void |
setInterval(String interval)
Set the check interval in a human readable format.
|
public static final Boolean DEFAULT_VALUE_ENABLED
public static final Duration DEFAULT_VALUE_INTERVAL
public static final Integer DEFAULT_VALUE_FAILURE_THRESHOLD
public Boolean isEnabled()
public void setEnabled(Boolean enabled)
public Duration getInterval()
public void setInterval(Duration interval)
public void setInterval(String interval)
public Integer getFailureThreshold()
public void setFailureThreshold(Integer failureThreshold)
public static Boolean defaultValueEnabled()
public static Duration defaultValueInterval()
public static Integer defaultValueFailureThreshold()
public HealthCheckConfiguration copy()
public static HealthCheckConfiguration.Builder builder()
Apache Camel