@Metadata(label="configuration,loadbalance") public class FailoverLoadBalancerDefinition extends LoadBalancerDefinition
Constructor and Description |
---|
FailoverLoadBalancerDefinition() |
Modifier and Type | Method and Description |
---|---|
protected LoadBalancer |
createLoadBalancer(RouteContext routeContext)
Factory method to create the load balancer instance
|
List<String> |
getExceptions() |
Integer |
getMaximumFailoverAttempts() |
Boolean |
getRoundRobin() |
void |
setExceptions(List<String> exceptions)
A list of class names for specific exceptions to monitor.
|
void |
setMaximumFailoverAttempts(Integer maximumFailoverAttempts)
A value to indicate after X failover attempts we should exhaust (give up).
|
void |
setRoundRobin(Boolean roundRobin)
Whether or not the failover load balancer should operate in round robin mode or not.
|
String |
toString() |
addProcessor, configureLoadBalancer, getLoadBalancer, getLoadBalancer, getProcessors, process, process, removeProcessor, setProperty
getId, setId
protected LoadBalancer createLoadBalancer(RouteContext routeContext)
LoadBalancerDefinition
createLoadBalancer
in class LoadBalancerDefinition
public void setExceptions(List<String> exceptions)
public Boolean getRoundRobin()
public void setRoundRobin(Boolean roundRobin)
public Integer getMaximumFailoverAttempts()
public void setMaximumFailoverAttempts(Integer maximumFailoverAttempts)
public String toString()
toString
in class LoadBalancerDefinition
Apache Camel