@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 instance
|
List<String> |
getExceptions() |
Long |
getHalfOpenAfter() |
Integer |
getThreshold() |
void |
setExceptions(List<String> exceptions)
A list of class names for 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() |
addProcessor, configureLoadBalancer, getLoadBalancer, getLoadBalancer, getProcessors, process, process, removeProcessor, setPropertygetId, setIdpublic CircuitBreakerLoadBalancerDefinition()
protected LoadBalancer createLoadBalancer(RouteContext routeContext)
LoadBalancerDefinitioncreateLoadBalancer in class LoadBalancerDefinitionpublic Long getHalfOpenAfter()
public void setHalfOpenAfter(Long halfOpenAfter)
public Integer getThreshold()
public void setThreshold(Integer threshold)
public void setExceptions(List<String> exceptions)
public String toString()
toString in class LoadBalancerDefinitionApache Camel