Spring Integration

Class MailReceivingMessageSource

  extended by org.springframework.integration.mail.MailReceivingMessageSource
All Implemented Interfaces:

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.

Jonas Partner, Mark Fisher

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


public MailReceivingMessageSource(MailReceiver mailReceiver)
Method Detail


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>

Spring Integration