java.lang.Object
ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
ch.tocco.nice2.optional.mailintegration.impl.userbase.NullMailWorker
All Implemented Interfaces:
MailWorker

public class NullMailWorker extends AbstractMailWorker
A null worker used for prioritizing workers.
  • Constructor Details

    • NullMailWorker

      public NullMailWorker()
  • Method Details

    • perform

      public void perform(IncomeMail mail, MailWorkerContext context)
      Description copied from interface: MailWorker
      Called for each incoming mail. The context can be used for communication between workers. It is constructed at MailWorker.init(MailWorkerConfig) time and passed to each worker.

      This method is invoked during an open connection to the mailbox.

      This method may throw a runtime exception indicating a non-recoverable error. In this case remaining workers are not invoked and the mail is not deleted from the mailbox.