Package ch.astorm.smtp4j.core
Interface SmtpMessageHandler.SmtpMessageReader
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
SmtpMessageHandler
Represents a simple
SmtpMessage iterator.-
Method Summary
Modifier and TypeMethodDescriptionReads the next availableSmtpMessage.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
readMessage
SmtpMessage readMessage()Reads 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.
-