|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.mail.queue.MailQueueImpl
public class 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 MailQueue
public int size()
size
in interface MailQueue
public int errorSize()
errorSize
in interface MailQueue
public void addItem(MailQueueItem item)
MailQueue
addItem
in interface MailQueue
item
- The item to be added to the queue.public void addErrorItem(MailQueueItem item)
MailQueue
addErrorItem
in interface MailQueue
public org.apache.commons.collections.Buffer getQueue()
MailQueue
getQueue
in interface MailQueue
public org.apache.commons.collections.Buffer getErrorQueue()
MailQueue
getErrorQueue
in interface MailQueue
public boolean isSending()
isSending
in interface MailQueue
public java.sql.Timestamp getSendingStarted()
getSendingStarted
in interface MailQueue
public MailQueueItem getItemBeingSent()
MailQueue
getItemBeingSent
in interface MailQueue
public void unstickQueue()
MailQueue
unstickQueue
in interface MailQueue
public void emptyErrorQueue()
MailQueue
emptyErrorQueue
in interface MailQueue
public void resendErrorQueue()
MailQueue
resendErrorQueue
in interface MailQueue
public void sendingStarted()
public void sendingStopped()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |