Class WinmailWorker

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

@Component public class WinmailWorker extends AbstractMailWorker
  • Constructor Details

    • WinmailWorker

      public WinmailWorker(org.slf4j.Logger log)
  • 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.