Package org.apache.camel.health
Class HealthCheckConfiguration
- java.lang.Object
-
- org.apache.camel.health.HealthCheckConfiguration
-
- All Implemented Interfaces:
Cloneable
public class HealthCheckConfiguration extends Object implements Cloneable
Configuration forHealthCheck
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HealthCheckConfiguration.Builder
-
Constructor Summary
Constructors Constructor Description HealthCheckConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getParent
public String getParent()
-
setParent
public void setParent(String parent)
The id of the health check such as routes or registry (can use * as wildcard)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
Set if the check associated to this configuration is enabled or not. Is default enabled.
-
getInterval
public long getInterval()
-
setInterval
public void setInterval(long interval)
Set the check interval in milli seconds.
-
getFailureThreshold
public int getFailureThreshold()
-
setFailureThreshold
public void setFailureThreshold(int failureThreshold)
Set the number of failure before reporting the service as un-healthy.
-
getSuccessThreshold
public int getSuccessThreshold()
-
setSuccessThreshold
public void setSuccessThreshold(int successThreshold)
Set the number of success before reporting the service as healthy.
-
copy
public HealthCheckConfiguration copy()
-
builder
public static HealthCheckConfiguration.Builder builder()
-
-