|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.dispatcher.AbstractDispatcher
org.springframework.integration.dispatcher.AbstractUnicastDispatcher
org.springframework.integration.dispatcher.RoundRobinDispatcher
public class RoundRobinDispatcher
Round-robin implementation of AbstractUnicastDispatcher
. This
implementation will keep track of the index of the handler that has been
tried first and use a different starting handler every dispatch.
Field Summary |
---|
Fields inherited from class org.springframework.integration.dispatcher.AbstractDispatcher |
---|
logger |
Constructor Summary | |
---|---|
RoundRobinDispatcher()
|
Method Summary | |
---|---|
protected java.util.Iterator<MessageHandler> |
getHandlerIterator(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 org.springframework.integration.dispatcher.AbstractUnicastDispatcher |
---|
dispatch |
Methods inherited from class org.springframework.integration.dispatcher.AbstractDispatcher |
---|
addHandler, getHandlers, getTaskExecutor, removeHandler, sendMessageToHandler, setTaskExecutor, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RoundRobinDispatcher()
Method Detail |
---|
protected java.util.Iterator<MessageHandler> getHandlerIterator(java.util.List<MessageHandler> handlers)
next()
invocations.
getHandlerIterator
in class AbstractUnicastDispatcher
handlers
- all handlers for this dispatcher
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |