public interface ManageableMailQueue extends MailQueue
MailQueue
which is manageableModifier and Type | Interface and Description |
---|---|
static interface |
ManageableMailQueue.MailQueueItemView
Represent a View over a queue
MailQueue.MailQueueItem |
static interface |
ManageableMailQueue.MailQueueIterator
Iterator subclass which allows to browse the content of a queue. |
static class |
ManageableMailQueue.Type |
MailQueue.MailQueueException, MailQueue.MailQueueItem
Modifier and Type | Method and Description |
---|---|
ManageableMailQueue.MailQueueIterator |
browse()
Allow to browse the queues content.
|
long |
clear()
Remove all mails from the queue
|
long |
flush()
Flush the queue, which means it will make all message ready for dequeue
|
long |
getSize()
Return the size of the queue
|
long |
remove(ManageableMailQueue.Type type,
String value)
Remove all mails from the queue that match
|
long getSize() throws MailQueue.MailQueueException
MailQueueException
MailQueue.MailQueueException
long flush() throws MailQueue.MailQueueException
MailQueueException
MailQueue.MailQueueException
long clear() throws MailQueue.MailQueueException
MailQueueException
MailQueue.MailQueueException
long remove(ManageableMailQueue.Type type, String value) throws MailQueue.MailQueueException
type
- value
- MailQueueException
MailQueue.MailQueueException
ManageableMailQueue.MailQueueIterator browse() throws MailQueue.MailQueueException
MailQueue.MailQueueException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.