org.springframework.integration.mail
Class MailReceivingMessageSource

java.lang.Object
  extended by org.springframework.integration.mail.MailReceivingMessageSource
All Implemented Interfaces:
MessageSource<javax.mail.Message>

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 Summary
MailReceivingMessageSource(MailReceiver mailReceiver)
           
 
Method Summary
 Message<javax.mail.Message> receive()
          Retrieve the next available message from this source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailReceivingMessageSource

public MailReceivingMessageSource(MailReceiver mailReceiver)
Method Detail

receive

public Message<javax.mail.Message> receive()
Description copied from interface: MessageSource
Retrieve the next available message from this source. Returns null if no message is available.

Specified by:
receive in interface MessageSource<javax.mail.Message>