Class NullMailWorker
java.lang.Object
ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
ch.tocco.nice2.optional.mailintegration.impl.userbase.NullMailWorker
- All Implemented Interfaces:
MailWorker
A
null
worker used for prioritizing workers.-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
DUPLICATE_MAIL_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(IncomeMail mail, MailWorkerContext context) Called for each incoming mail.Methods inherited from class ch.tocco.nice2.optional.mailintegration.spi.AbstractMailWorker
finish, init
-
Constructor Details
-
NullMailWorker
public NullMailWorker()
-
-
Method Details
-
perform
Description copied from interface:MailWorker
Called for each incoming mail. The context can be used for communication between workers. It is constructed atMailWorker.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.
-