SMSLib 3.5.3

org.smslib.balancing
Class RoundRobinLoadBalancer

java.lang.Object
  extended by org.smslib.balancing.LoadBalancer
      extended by org.smslib.balancing.RoundRobinLoadBalancer

public final class RoundRobinLoadBalancer
extends LoadBalancer

RoundRobinLoadBalancer is forwarding messages via each gateway in turns. This is the default SMSLib load balancer.


Constructor Summary
RoundRobinLoadBalancer()
           
 
Method Summary
 AGateway balance(OutboundMessage msg, java.util.Collection<AGateway> candidates)
          This Load Balancing implementation returns every other available gateway on each invocation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinLoadBalancer

public RoundRobinLoadBalancer()
Method Detail

balance

public AGateway balance(OutboundMessage msg,
                        java.util.Collection<AGateway> candidates)
This Load Balancing implementation returns every other available gateway on each invocation.

Overrides:
balance in class LoadBalancer
Parameters:
msg - Message to be sent.
candidates - List of candidate gateways to choose from

SMSLib 3.5.3

(c) 2002-2011, http://smslib.org