Interface SmtpMessageHandler.SmtpMessageIterator

Enclosing interface:
SmtpMessageHandler

public static interface SmtpMessageHandler.SmtpMessageIterator
Represents a simple SmtpMessage iterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the next available SmtpMessage.
  • Method Details

    • next

      SmtpMessage next()
      Returns the next available SmtpMessage. If none, this method will block until a new one is received. If the SmtpServer is closed, this method will return null.
      Returns:
      The next received SmtpMessage or null if the underlying SmtpServer is closed.