|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailQueue
The MailQueue is used to asynchronously send mail from within applications.
It is populated with MailQueueItem
objects, which know how to send themselves.
The queue also keeps track of which messages have attempted to be send, and were erroring.
Method Summary | |
---|---|
void |
addErrorItem(MailQueueItem item)
Add an error item |
void |
addItem(MailQueueItem item)
Add a new item to the mail queue. |
void |
emptyErrorQueue()
Empty the error queue (discard these messages) |
int |
errorSize()
|
org.apache.commons.collections.Buffer |
getErrorQueue()
Get access to the messages in the error queue. |
MailQueueItem |
getItemBeingSent()
Retrieve the item currently being sent. |
org.apache.commons.collections.Buffer |
getQueue()
Get access to the messages in the mail queue. |
java.sql.Timestamp |
getSendingStarted()
|
boolean |
isSending()
|
void |
resendErrorQueue()
Send all messages in the error queue. |
void |
sendBuffer()
Send all the messages in the queue. |
int |
size()
|
void |
unstickQueue()
If the queue is sending and has 'stuck' on an item, this lets the queue proceed. |
Method Detail |
---|
void sendBuffer()
int size()
int errorSize()
void addItem(MailQueueItem item)
item
- The item to be added to the queue.void addErrorItem(MailQueueItem item)
item
- org.apache.commons.collections.Buffer getQueue()
Note: you should synchronize on access to this queue.
org.apache.commons.collections.Buffer getErrorQueue()
Note: you should synchronize on access to this queue.
boolean isSending()
java.sql.Timestamp getSendingStarted()
void emptyErrorQueue()
void resendErrorQueue()
MailQueueItem getItemBeingSent()
void unstickQueue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |