public interface MonitoringStrategy
IDLE command.| Modifier and Type | Method and Description |
|---|---|
int |
getFolderOpenMode()
Returns the folder open mode to be used by this strategy.
|
javax.mail.Message[] |
monitor(javax.mail.Folder folder)
Monitors the given folder, and returns any new messages when they arrive.
|
javax.mail.Message[] monitor(javax.mail.Folder folder)
throws javax.mail.MessagingException,
InterruptedException
folder - the folder in which to look for new messagesjavax.mail.MessagingException - in case of JavaMail errorsInterruptedException - if a thread is interruptedint getFolderOpenMode()
Folder.READ_ONLY or Folder.READ_WRITE.Copyright © 2017 Pivotal Software. All rights reserved.