Package ch.astorm.smtp4j.core
Interface SmtpMessageHandler.SmtpMessageIterator
- Enclosing interface:
- SmtpMessageHandler
public static interface SmtpMessageHandler.SmtpMessageIterator
Represents a simple
SmtpMessage iterator.-
Method Summary
-
Method Details
-
next
SmtpMessage next()Returns the next availableSmtpMessage. If none, this method will block until a new one is received. If theSmtpServeris closed, this method will return null.- Returns:
- The next received
SmtpMessageor null if the underlyingSmtpServeris closed.
-