public class MailReceivingMessageSource extends java.lang.Object implements MessageSource<javax.mail.Message>
MessageSource
implementation that delegates to a
MailReceiver
to poll a mailbox. Each poll of the mailbox may
return more than one message which will then be stored in a queue.Constructor and Description |
---|
MailReceivingMessageSource(MailReceiver mailReceiver) |
public MailReceivingMessageSource(MailReceiver mailReceiver)
public Message<javax.mail.Message> receive()
MessageSource
null
if no message is available.receive
in interface MessageSource<javax.mail.Message>