org.springframework.integration.mail
Class MailReceivingMessageSource
java.lang.Object
org.springframework.integration.mail.MailReceivingMessageSource
- All Implemented Interfaces:
- MessageSource<javax.mail.Message>
public class MailReceivingMessageSource
- extends 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.
- Author:
- Jonas Partner, Mark Fisher
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 |
MailReceivingMessageSource
public MailReceivingMessageSource(MailReceiver mailReceiver)
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>
Copyright © 2010. All Rights Reserved.