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:
| Modifier and Type | Interface and Description |
|---|---|
static class |
MailQueue.MailQueueException
Exception which will get thrown if any problems occur while working the
MailQueue |
static interface |
MailQueue.MailQueueItem |
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_DELAY
No delay for queued
MailQueue.MailQueueItem |
| Modifier and Type | Method and Description |
|---|---|
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,
TimeUnit unit)
Enqueue the Mail to the queue.
|
static final int NO_DELAY
MailQueue.MailQueueItemvoid enQueue(org.apache.mailet.Mail mail,
long delay,
TimeUnit unit)
throws MailQueue.MailQueueException
mail - delay - unit - MailQueue.MailQueueExceptionvoid enQueue(org.apache.mailet.Mail mail)
throws MailQueue.MailQueueException
mail - MailQueue.MailQueueExceptionMailQueue.MailQueueItem deQueue() throws MailQueue.MailQueueException
MailQueue.MailQueueExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.