Interface WebEngineHistory.Mailer

Enclosing class:
WebEngineHistory
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 WebEngineHistory.Mailer
Sends a warning mail to the administrators.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    send(String subject, String text)
    Sends a mail.
  • Method Details

    • send

      int send(String subject, String text) throws Exception
      Sends a mail.
      Parameters:
      subject - The subject.
      text - The plain text.
      Returns:
      The recipients it was sent to; 0 when there is nobody to send to, which is not an error.
      Throws:
      Exception - If the mail cannot be sent: it is tried again at the next check.