Interface AccountEmailChange.IMailStep

Enclosing class:
AccountEmailChange
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AccountEmailChange.IMailStep
The delivery step of a mail: Mail::queue in the server, a fake in the tests.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    deliver(Mail mail)
    Delivers the mail: queues or sends it.
  • Method Details

    • deliver

      boolean deliver(Mail mail) throws MessagingException, IOException
      Delivers the mail: queues or sends it.
      Parameters:
      mail - The mail.
      Returns:
      true when the mail is queued or sent, false when it was not accepted.
      Throws:
      MessagingException - For mail errors.
      IOException - If the mail queue cannot be written.