Class ImapMailReceiver
java.lang.Object
com.google.gerrit.server.mail.receive.MailReceiver
com.google.gerrit.server.mail.receive.ImapMailReceiver
- All Implemented Interfaces:
LifecycleListener
,EventListener
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.server.mail.receive.MailReceiver
MailReceiver.MailReceiverModule
-
Field Summary
Fields inherited from class com.google.gerrit.server.mail.receive.MailReceiver
mailSettings, pendingDeletion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
handleEmails
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
-