public class HealthCheckConfiguration extends Object implements Cloneable
HealthCheck.| Modifier and Type | Class and Description |
|---|---|
static class |
HealthCheckConfiguration.Builder |
| Constructor and Description |
|---|
HealthCheckConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheckConfiguration.Builder |
builder() |
HealthCheckConfiguration |
copy() |
int |
getFailureThreshold() |
long |
getInterval() |
String |
getParent() |
int |
getSuccessThreshold() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Set if the check associated to this configuration is enabled or not.
|
void |
setFailureThreshold(int failureThreshold)
Set the number of failure before reporting the service as un-healthy.
|
void |
setInterval(long interval)
Set the check interval in milli seconds.
|
void |
setParent(String parent)
The id of the health check such as routes or registry (can use * as wildcard)
|
void |
setSuccessThreshold(int successThreshold)
Set the number of success before reporting the service as healthy.
|
public String getParent()
public void setParent(String parent)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public long getInterval()
public void setInterval(long interval)
public int getFailureThreshold()
public void setFailureThreshold(int failureThreshold)
public int getSuccessThreshold()
public void setSuccessThreshold(int successThreshold)
public HealthCheckConfiguration copy()
public static HealthCheckConfiguration.Builder builder()
Apache Camel