|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.dispatcher.RoundRobinLoadBalancingStrategy
public class RoundRobinLoadBalancingStrategy
Round-robin implementation of LoadBalancingStrategy
. This
implementation will keep track of the index of the handler that has been
tried first and use a different starting handler every dispatch.
Constructor Summary | |
---|---|
RoundRobinLoadBalancingStrategy()
|
Method Summary | |
---|---|
java.util.Iterator<MessageHandler> |
getHandlerIterator(Message<?> message,
java.util.List<MessageHandler> handlers)
Returns an iterator that starts at a new point in the list every time the first part of the list that is skipped will be used at the end of the iteration, so it guarantees all handlers are returned once on subsequent next() invocations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoundRobinLoadBalancingStrategy()
Method Detail |
---|
public final java.util.Iterator<MessageHandler> getHandlerIterator(Message<?> message, java.util.List<MessageHandler> handlers)
next()
invocations.
getHandlerIterator
in interface LoadBalancingStrategy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |