Class ImapMailReceiver
- java.lang.Object
-
- com.google.gerrit.server.mail.receive.MailReceiver
-
- com.google.gerrit.server.mail.receive.ImapMailReceiver
-
- All Implemented Interfaces:
LifecycleListener
,EventListener
public class ImapMailReceiver extends MailReceiver
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.server.mail.receive.MailReceiver
MailReceiver.Module
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.mail.receive.MailReceiver
mailSettings, pendingDeletion
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEmails(boolean async)
Opens a connection to the mail server, removes emails where deletion is pending, reads new email and closes the connection.-
Methods inherited from class com.google.gerrit.server.mail.receive.MailReceiver
dispatchMailProcessor, requestDeletion, start, stop
-
-
-
-
Method Detail
-
handleEmails
public void handleEmails(boolean async) throws MailTransferException, IOException
Opens a connection to the mail server, removes emails where deletion is pending, reads new email and closes the connection.- Specified by:
handleEmails
in classMailReceiver
- Parameters:
async
- determines if processing messages should happen asynchronously- Throws:
MailTransferException
- in case of a known transport failureIOException
- in case of a low-level transport failure
-
-