|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MailQueue
A Queue/Spool for Mails. How the Queue handles the ordering of the
dequeuing is up to the implementation.
IMPORTANT:
Implementations does not need to keep all Mail Attributes when enqueue emails. The implementations are only
in the need of supporting at least this kind of Primitives as values:
- Long
- Byte
- Integer
- String
- Boolean
- Short
- Float
- Double
| Nested Class Summary | |
|---|---|
static class |
MailQueue.MailQueueException
Exception which will get thrown if any problems occur while working the MailQueue |
static interface |
MailQueue.MailQueueItem
|
| Method Summary | |
|---|---|
MailQueue.MailQueueItem |
deQueue()
Dequeue the next ready-to-process Mail of the queue. |
void |
enQueue(org.apache.mailet.Mail mail)
Enqueue the Mail to the queue |
void |
enQueue(org.apache.mailet.Mail mail,
long delay,
java.util.concurrent.TimeUnit unit)
Enqueue the Mail to the queue. |
| Method Detail |
|---|
void enQueue(org.apache.mailet.Mail mail,
long delay,
java.util.concurrent.TimeUnit unit)
throws MailQueue.MailQueueException
mail - delay - unit -
MailQueue.MailQueueException
void enQueue(org.apache.mailet.Mail mail)
throws MailQueue.MailQueueException
mail -
MailQueue.MailQueueException
MailQueue.MailQueueItem deQueue()
throws MailQueue.MailQueueException
DequeueOperation. Implementations should take care todo some kind of transactions to not loose any mail on error
dequeueOperation -
MailQueue.MailQueueException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||