|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The MailQueue is used to asynchronously send mail from within applications.
It is populated withMailQueueItem 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 |
public void sendBuffer()
public int size()
public int errorSize()
public void addItem(MailQueueItem item)
item - The item to be added to the queue.public void addErrorItem(MailQueueItem item)
item - public org.apache.commons.collections.Buffer getQueue()
public org.apache.commons.collections.Buffer getErrorQueue()
public boolean isSending()
public java.sql.Timestamp getSendingStarted()
public void emptyErrorQueue()
public void resendErrorQueue()
public MailQueueItem getItemBeingSent()
public void unstickQueue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||