@Metadata(label="eip,routing") public class LoadBalancerDefinition extends IdentifiedType implements OtherAttributesAware
Modifier | Constructor and Description |
---|---|
|
LoadBalancerDefinition() |
|
LoadBalancerDefinition(LoadBalancer loadBalancer) |
protected |
LoadBalancerDefinition(String loadBalancerTypeName) |
Modifier and Type | Method and Description |
---|---|
protected void |
configureLoadBalancer(LoadBalancer loadBalancer)
Allows derived classes to customize the load balancer
|
protected LoadBalancer |
createLoadBalancer(RouteContext routeContext)
Factory method to create the load balancer from the loadBalancerTypeName
|
LoadBalancer |
getLoadBalancer(RouteContext routeContext) |
protected int |
getMaximumNumberOfOutputs()
Maximum number of outputs, as some load balancers only support 1 processor
|
Map<QName,Object> |
getOtherAttributes()
Adds optional attribute to use as property placeholder
|
void |
setLoadBalancer(LoadBalancer loadBalancer) |
void |
setOtherAttributes(Map<QName,Object> otherAttributes)
Adds optional attribute to use as property placeholder
|
protected void |
setProperty(Object bean,
String name,
Object value)
Sets a named property on the data format instance using introspection
|
String |
toString() |
getId, setId
public LoadBalancerDefinition()
public LoadBalancerDefinition(LoadBalancer loadBalancer)
protected LoadBalancerDefinition(String loadBalancerTypeName)
protected void setProperty(Object bean, String name, Object value)
protected int getMaximumNumberOfOutputs()
protected void configureLoadBalancer(LoadBalancer loadBalancer)
public LoadBalancer getLoadBalancer(RouteContext routeContext)
public void setLoadBalancer(LoadBalancer loadBalancer)
public Map<QName,Object> getOtherAttributes()
OtherAttributesAware
getOtherAttributes
in interface OtherAttributesAware
public void setOtherAttributes(Map<QName,Object> otherAttributes)
OtherAttributesAware
setOtherAttributes
in interface OtherAttributesAware
protected LoadBalancer createLoadBalancer(RouteContext routeContext)
Apache Camel