org.apache.servicemix.jbi.resolver
Class ServiceRoundRobinPolicy

java.lang.Object
  extended by org.apache.servicemix.jbi.resolver.ServiceRoundRobinPolicy
All Implemented Interfaces:
EndpointChooser

public class ServiceRoundRobinPolicy
extends Object
implements EndpointChooser

a simple round robin endpoint resolver policy to have a basic load balancing

Author:
lhein

Constructor Summary
ServiceRoundRobinPolicy()
           
 
Method Summary
 javax.jbi.servicedesc.ServiceEndpoint chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints, javax.jbi.component.ComponentContext context, javax.jbi.messaging.MessageExchange exchange)
          Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceRoundRobinPolicy

public ServiceRoundRobinPolicy()
Method Detail

chooseEndpoint

public javax.jbi.servicedesc.ServiceEndpoint chooseEndpoint(javax.jbi.servicedesc.ServiceEndpoint[] endpoints,
                                                            javax.jbi.component.ComponentContext context,
                                                            javax.jbi.messaging.MessageExchange exchange)
Description copied from interface: EndpointChooser
Chooses an endpoint from the array of 2 or more endpoints or returns null if none of them are acceptable

Specified by:
chooseEndpoint in interface EndpointChooser


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.