|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorType<LoadBalanceType>
org.apache.camel.model.LoadBalanceType
public class LoadBalanceType
Represents an XML <loadBalance/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorType |
---|
DEFAULT_TRACE_CATEGORY |
Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
nodeCounters |
Constructor Summary | |
---|---|
LoadBalanceType()
|
Method Summary | |
---|---|
protected void |
configureChild(ProcessorType output)
|
protected Processor |
createOutputsProcessor(RouteContext routeContext,
Collection<ProcessorType<?>> outputs)
|
Processor |
createProcessor(RouteContext routeContext)
|
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
LoadBalancerType |
getLoadBalancerType()
|
List<ProcessorType<?>> |
getOutputs()
|
String |
getRef()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
LoadBalanceType |
random()
|
LoadBalanceType |
roundRobin()
|
LoadBalanceType |
setLoadBalancer(LoadBalancer loadBalancer)
|
void |
setLoadBalancerType(LoadBalancerType loadbalancer)
|
void |
setOutputs(List<ProcessorType<?>> outputs)
|
void |
setRef(String ref)
|
LoadBalanceType |
sticky(Expression<Exchange> correlationExpression)
|
LoadBalanceType |
topic()
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
---|
createId, description, description, getDescription, getId, getNodeCounter, id, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LoadBalanceType()
Method Detail |
---|
public String getShortName()
OptionalIdentifiedType
getShortName
in class OptionalIdentifiedType<LoadBalanceType>
public List<ProcessorType<?>> getOutputs()
getOutputs
in class ProcessorType<LoadBalanceType>
public void setOutputs(List<ProcessorType<?>> outputs)
protected void configureChild(ProcessorType output)
configureChild
in class ProcessorType<LoadBalanceType>
public String getRef()
public void setRef(String ref)
public LoadBalancerType getLoadBalancerType()
public void setLoadBalancerType(LoadBalancerType loadbalancer)
protected Processor createOutputsProcessor(RouteContext routeContext, Collection<ProcessorType<?>> outputs) throws Exception
createOutputsProcessor
in class ProcessorType<LoadBalanceType>
Exception
public Processor createProcessor(RouteContext routeContext) throws Exception
createProcessor
in class ProcessorType<LoadBalanceType>
Exception
public LoadBalanceType setLoadBalancer(LoadBalancer loadBalancer)
public LoadBalanceType roundRobin()
public LoadBalanceType random()
public LoadBalanceType sticky(Expression<Exchange> correlationExpression)
public LoadBalanceType topic()
public String getLabel()
ProcessorType
getLabel
in class ProcessorType<LoadBalanceType>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |