Package com.logicaldoc.email
Class Crawler
java.lang.Object
com.logicaldoc.email.Crawler
- All Implemented Interfaces:
Callable<CrawlStats>
A task that processes a list of
EmailAccounts- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncall()getStats()static jakarta.mail.StoregetStore(EmailAccount account) voidvoidprocessAccount(EmailAccount account) voidsetStats(CrawlStats stats)
-
Field Details
-
COUNTER_SEQUENCE
- See Also:
-
-
Method Details
-
call
- Specified by:
callin interfaceCallable<CrawlStats>- Throws:
Exception
-
processAccount
public void processAccount(EmailAccount account) throws jakarta.mail.MessagingException, IOException - Throws:
jakarta.mail.MessagingExceptionIOException
-
getStore
public static jakarta.mail.Store getStore(EmailAccount account) throws jakarta.mail.MessagingException, IOException - Throws:
jakarta.mail.MessagingExceptionIOException
-
getStats
-
setStats
-
interrupt
public void interrupt()
-