@Metadata(label="configuration,loadbalance") public class CircuitBreakerLoadBalancerDefinition extends LoadBalancerDefinition
Constructor and Description |
---|
CircuitBreakerLoadBalancerDefinition() |
Modifier and Type | Method and Description |
---|---|
protected LoadBalancer |
createLoadBalancer(RouteContext routeContext)
Factory method to create the load balancer from the loadBalancerTypeName
|
List<String> |
getExceptions() |
List<Class<?>> |
getExceptionTypes() |
Long |
getHalfOpenAfter() |
Integer |
getThreshold() |
void |
setExceptions(List<String> exceptions)
A list of class names for specific exceptions to monitor.
|
void |
setExceptionTypes(List<Class<?>> exceptionTypes)
A list of specific exceptions to monitor.
|
void |
setHalfOpenAfter(Long halfOpenAfter)
The timeout in millis to use as threshold to move state from closed to half-open or open state
|
void |
setThreshold(Integer threshold)
Number of previous failed messages to use as threshold to move state from closed to half-open or open state
|
String |
toString() |
configureLoadBalancer, getLoadBalancer, setLoadBalancer, setProperty
getId, setId
public CircuitBreakerLoadBalancerDefinition()
protected LoadBalancer createLoadBalancer(RouteContext routeContext)
LoadBalancerDefinition
createLoadBalancer
in class LoadBalancerDefinition
public Long getHalfOpenAfter()
public void setHalfOpenAfter(Long halfOpenAfter)
public Integer getThreshold()
public void setThreshold(Integer threshold)
public List<String> getExceptions()
public void setExceptions(List<String> exceptions)
public List<Class<?>> getExceptionTypes()
public void setExceptionTypes(List<Class<?>> exceptionTypes)
public String toString()
toString
in class LoadBalancerDefinition
Apache Camel