public abstract class AbstractHealthCheckConfiguration extends Object
Constructor and Description |
---|
AbstractHealthCheckConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.health.HealthCheckConfiguration |
asHealthCheckConfiguration()
Convert this configuration to a
HealthCheckConfiguration using default values. |
Integer |
getFailureThreshold() |
String |
getInterval() |
Boolean |
isEnabled()
Set if the check associated to this configuration is enabled or not.
|
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(String interval)
Set the check interval.
|
public Boolean isEnabled()
public void setEnabled(Boolean enabled)
public String getInterval()
public void setInterval(String interval)
public Integer getFailureThreshold()
public void setFailureThreshold(Integer failureThreshold)
public org.apache.camel.health.HealthCheckConfiguration asHealthCheckConfiguration()
HealthCheckConfiguration
using default values.Apache Camel