Package org.jgrapes.mail.events
Class OpenMailMonitor
java.lang.Object
org.jgrapes.core.internal.EventBase<Void>
org.jgrapes.core.Event<Void>
org.jgrapes.mail.events.OpenMailConnection
org.jgrapes.mail.events.OpenMailMonitor
- All Implemented Interfaces:
Future<Void>,Associator,Eligible
An event that opens folders on the store defined by the
base class for monitoring.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor -
Constructor Summary
ConstructorsConstructorDescriptionOpenMailMonitor(String... folderNames) Creates a new monitor connection (seeOpenMailConnection) that sends events related to watching the specified folders. -
Method Summary
Methods inherited from class org.jgrapes.mail.events.OpenMailConnection
mailProperties, password, setMailProperties, setMailProperty, setPasswordMethods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toStringMethods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGetMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
OpenMailMonitor
Creates a new monitor connection (seeOpenMailConnection) that sends events related to watching the specified folders.- Parameters:
folderNames- the folders, defaults to “INBOX”
-
-
Method Details
-
folderNames
Returns the watched folders.- Returns:
- the string[]
-