org.apache.camel.processor.loadbalancer
Interface LoadBalancer

All Superinterfaces:
AsyncProcessor, Processor
All Known Implementing Classes:
FailOverLoadBalancer, FailoverLoadBalancerDefinition, LoadBalancerDefinition, LoadBalancerSupport, QueueLoadBalancer, RandomLoadBalancer, RandomLoadBalancerDefinition, RoundRobinLoadBalancer, RoundRobinLoadBalancerDefinition, SimpleLoadBalancerSupport, StickyLoadBalancer, StickyLoadBalancerDefinition, TopicLoadBalancer, TopicLoadBalancerDefinition

public interface LoadBalancer
extends AsyncProcessor

A strategy for load balancing across a number of Processor instances

Version:
$Revision: 19893 $

Method Summary
 void addProcessor(Processor processor)
          Adds a new processor to the load balancer
 List<Processor> getProcessors()
          Returns the current processors available to this load balancer
 void removeProcessor(Processor processor)
          Removes the given processor from the load balancer
 
Methods inherited from interface org.apache.camel.AsyncProcessor
process
 
Methods inherited from interface org.apache.camel.Processor
process
 

Method Detail

addProcessor

void addProcessor(Processor processor)
Adds a new processor to the load balancer

Parameters:
processor - the processor to be added to the load balancer

removeProcessor

void removeProcessor(Processor processor)
Removes the given processor from the load balancer

Parameters:
processor - the processor to be removed from the load balancer

getProcessors

List<Processor> getProcessors()
Returns the current processors available to this load balancer

Returns:
the processors available


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.