Class MailDaemon

  • All Implemented Interfaces:
    java.lang.Runnable

    public final class MailDaemon
    extends java.lang.Object
    implements java.lang.Runnable
    An runnable that will send emails delivered over a concurrent queue.
    Author:
    Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      MailDaemon​(java.util.concurrent.ArrayBlockingQueue<MailAction> mailQueue, Emailer emailer)
      Create a MailDaemon
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MailDaemon

        public MailDaemon​(java.util.concurrent.ArrayBlockingQueue<MailAction> mailQueue,
                          Emailer emailer)
        Create a MailDaemon
        Parameters:
        mailQueue - The source for mail actions.
        emailer - The emailer to fob them off onto.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable