Package org.jgrapes.mail.events
Class ReceivedMailMessage
- All Implemented Interfaces:
Future<Void>
,Associator
,Eligible
Indicates the arrival of a new message.
Handler should delete the message after successful processing.
-
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents
-
Constructor Summary
ConstructorsConstructorDescriptionReceivedMailMessage
(Message message, Channel... channels) Creates a new event. -
Method Summary
Methods 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, toString
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
-
Constructor Details
-
ReceivedMailMessage
Creates a new event.- Parameters:
message
- the messagechannels
- the channels
-
-
Method Details
-
message
Returns the message.- Returns:
- the message
-