|
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
public class LoadBalancer
Load Balancing base class. Implements default trivial Load Balancing - just picking first available Gateway to send message. Create subclasses to implement custom functionality.
Constructor Summary | |
---|---|
LoadBalancer()
|
Method Summary | |
---|---|
AGateway |
balance(OutboundMessage msg,
java.util.Collection<AGateway> candidates)
Core of Load Balancing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoadBalancer()
Method Detail |
---|
public AGateway balance(OutboundMessage msg, java.util.Collection<AGateway> candidates)
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 |