|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MailQueueManager
This interface defines the methods that classes with
MailQueueManager functionalities have to implement.
A MailQueueManager provides methods that allow you to store
email messages in a queue. That queue is intended to be processed at
regular intervals by a MailQueueExecutor.
MailQueueExecutor| Method Summary | |
|---|---|
boolean |
queue(Email email)
Adds the provided email to the queue. |
boolean |
queue(MimeMessage email)
Adds a fully setup JavaMail email to the queue. |
| Method Detail |
|---|
boolean queue(Email email)
throws MailQueueManagerException
Email
instance fails, the data will not be added to the queue.
Details about the failure can be obtained throught the
ValidationErrors of the Email instance.
email - The Email instance that needs to be
queued.
true if the email was successfully queued; or
false if an email validation failed (for instance a
duplicate entry)
MailQueueManagerException - If an error occurred while
adding the email to the queuequeue(MimeMessage)
boolean queue(MimeMessage email)
throws MailQueueManagerException
This complements the quick way of adding Email instances by providing a way to queue even HTML emails, mails with attachments, etc ...
email - The MimeMessage instance that needs to be
queued.
true if the email was successfully queued; or
false otherwise
MailQueueManagerException - If an error occurred while
adding the email to the queuequeue(Email)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||