|
SMSLib 3.5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.smslib.balancing.LoadBalancer
org.smslib.balancing.RoundRobinLoadBalancer
public final class RoundRobinLoadBalancer
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 |
---|
public RoundRobinLoadBalancer()
Method Detail |
---|
public AGateway balance(OutboundMessage msg, java.util.Collection<AGateway> candidates)
balance
in class LoadBalancer
msg
- Message to be sent.candidates
- List of candidate gateways to choose from
|
SMSLib 3.5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |