Class MailerDaemon

java.lang.Object
org.deltava.mail.MailerDaemon
All Implemented Interfaces:
Runnable

public class MailerDaemon extends Object implements Runnable
A daemon thread to send e-mail and VAPID messages in the background. SMTP messages are not designed for critical information; they are designed to fail silently on an error.
Since:
1.0
Version:
11.1
Author:
Luke
  • Constructor Details

    • MailerDaemon

      public MailerDaemon()
  • Method Details

    • push

      public static void push(NotificationEnvelope<?> env)
      Queues an SMTP message for mailing by the daemon.
      Parameters:
      env - the SMTP envelope
    • getInvalidEndpoints

      public static Collection<PushEndpoint> getInvalidEndpoints()
      Returns any invalid push endpoints.
      Returns:
      a Collection of PushEndpoints
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • toString

      public String toString()
      Overrides:
      toString in class Object