|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.dispatcher.ChannelPollingMessageRetriever
public class ChannelPollingMessageRetriever
Message retriever that polls a MessageChannel
. The number of
messages retrieved per poll is limited by the 'maxMessagesPerTask'
property of the channel's dispatcher policy, and the timeout for each receive
call is determined by the dispatcher policy's 'receiveTimeout'
property. In general, it is recommended to use a value of 1 for
'maxMessagesPerTask' whenever a significant timeout is provided. Otherwise the
retriever may be holding on to available messages while waiting for
additional messages.
Constructor Summary | |
---|---|
ChannelPollingMessageRetriever(MessageChannel channel)
|
Method Summary | |
---|---|
java.util.Collection<Message<?>> |
retrieveMessages()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelPollingMessageRetriever(MessageChannel channel)
Method Detail |
---|
public java.util.Collection<Message<?>> retrieveMessages()
retrieveMessages
in interface MessageRetriever
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |