Interface LoadBalancer
-
- All Superinterfaces:
org.apache.camel.AsyncProcessor
,org.apache.camel.Processor
- All Known Implementing Classes:
FailOverLoadBalancer
,LoadBalancerSupport
,QueueLoadBalancer
,RandomLoadBalancer
,RoundRobinLoadBalancer
,StickyLoadBalancer
,TopicLoadBalancer
,WeightedLoadBalancer
,WeightedRandomLoadBalancer
,WeightedRoundRobinLoadBalancer
public interface LoadBalancer extends org.apache.camel.AsyncProcessor
A strategy for load balancing across a number ofProcessor
instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProcessor(org.apache.camel.AsyncProcessor processor)
Adds a new processor to the load balancerList<org.apache.camel.AsyncProcessor>
getProcessors()
Returns the current processors available to this load balancervoid
removeProcessor(org.apache.camel.AsyncProcessor processor)
Removes the given processor from the load balancer
-
-
-
Method Detail
-
addProcessor
void addProcessor(org.apache.camel.AsyncProcessor processor)
Adds a new processor to the load balancer- Parameters:
processor
- the processor to be added to the load balancer
-
removeProcessor
void removeProcessor(org.apache.camel.AsyncProcessor processor)
Removes the given processor from the load balancer- Parameters:
processor
- the processor to be removed from the load balancer
-
getProcessors
List<org.apache.camel.AsyncProcessor> getProcessors()
Returns the current processors available to this load balancer- Returns:
- the processors available
-
-