|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.atlassian.mail.queue.MailQueueImpl
This is a volatile queue of the outgoing emails from JIRA.
Note - this class may lose emails if the server shuts down.
| Constructor Summary | |
MailQueueImpl()
|
|
| 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. |
void |
sendingStarted()
|
void |
sendingStopped()
|
int |
size()
|
void |
unstickQueue()
If the queue is sending and has 'stuck' on an item, this lets the queue proceed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MailQueueImpl()
| Method Detail |
public void sendBuffer()
MailQueue
sendBuffer in interface MailQueuepublic int size()
size in interface MailQueuepublic int errorSize()
errorSize in interface MailQueuepublic void addItem(MailQueueItem item)
MailQueue
addItem in interface MailQueueitem - The item to be added to the queue.public void addErrorItem(MailQueueItem item)
MailQueue
addErrorItem in interface MailQueueitem - public org.apache.commons.collections.Buffer getQueue()
MailQueue
getQueue in interface MailQueuepublic org.apache.commons.collections.Buffer getErrorQueue()
MailQueue
getErrorQueue in interface MailQueuepublic boolean isSending()
isSending in interface MailQueuepublic java.sql.Timestamp getSendingStarted()
getSendingStarted in interface MailQueuepublic MailQueueItem getItemBeingSent()
MailQueue
getItemBeingSent in interface MailQueuepublic void unstickQueue()
MailQueue
unstickQueue in interface MailQueuepublic void emptyErrorQueue()
MailQueue
emptyErrorQueue in interface MailQueuepublic void resendErrorQueue()
MailQueue
resendErrorQueue in interface MailQueuepublic void sendingStarted()
public void sendingStopped()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||