Class MailboxDirectoryReader
java.lang.Object
ch.tocco.nice2.messaging.mail.impl.MailboxDirectoryReader
- All Implemented Interfaces:
MailboxReader
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.messaging.mail.api.MailboxReader
MailboxReader.Context<T>
-
Constructor Summary
ConstructorDescriptionMailboxDirectoryReader
(org.slf4j.Logger log, Path directory, String glob, SessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescription<T> T
readMessages
(MailboxReaderHandler<T> handler) <T> T
readMessages
(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler)
-
Constructor Details
-
MailboxDirectoryReader
public MailboxDirectoryReader(org.slf4j.Logger log, Path directory, String glob, SessionFactory sessionFactory)
-
-
Method Details
-
readMessages
- Specified by:
readMessages
in interfaceMailboxReader
- Throws:
MailException
-
readMessages
public <T> T readMessages(jakarta.mail.search.SearchTerm searchTerm, MailboxReaderHandler<T> handler) throws MailException - Specified by:
readMessages
in interfaceMailboxReader
- Throws:
MailException
-