@Metadata(label="eip,routing,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 from the loadBalancerTypeName
|
List<String> |
getExceptions() |
List<Class<?>> |
getExceptionTypes() |
Integer |
getMaximumFailoverAttempts() |
Boolean |
getRoundRobin() |
Boolean |
getSticky() |
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 |
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.
|
void |
setSticky(Boolean sticky)
Whether or not the failover load balancer should operate in sticky mode or not.
|
String |
toString() |
configureLoadBalancer, getLoadBalancer, getMaximumNumberOfOutputs, getOtherAttributes, setLoadBalancer, setOtherAttributes, setPropertygetId, setIdpublic FailoverLoadBalancerDefinition()
protected LoadBalancer createLoadBalancer(RouteContext routeContext)
LoadBalancerDefinitioncreateLoadBalancer in class LoadBalancerDefinitionpublic List<String> getExceptions()
public void setExceptions(List<String> exceptions)
public List<Class<?>> getExceptionTypes()
public void setExceptionTypes(List<Class<?>> exceptionTypes)
public Boolean getRoundRobin()
public void setRoundRobin(Boolean roundRobin)
public void setSticky(Boolean sticky)
public Integer getMaximumFailoverAttempts()
public void setMaximumFailoverAttempts(Integer maximumFailoverAttempts)
public String toString()
toString in class LoadBalancerDefinitionApache Camel