com.atlassian.mail.queue
Class AbstractMailQueueItem

java.lang.Object
  extended by com.atlassian.mail.queue.AbstractMailQueueItem
All Implemented Interfaces:
MailQueueItem
Direct Known Subclasses:
SingleMailQueueItem

public abstract class AbstractMailQueueItem
extends Object
implements MailQueueItem


Field Summary
protected  MailThreader mailThreader
           
 
Constructor Summary
AbstractMailQueueItem()
           
AbstractMailQueueItem(String subject)
           
 
Method Summary
 void execute()
           
 Date getDateQueued()
          The date this mail item was queued.
 int getSendCount()
          Returns this number of this mail item has been sent
 String getSubject()
          The subject of the queued mail item.
 boolean hasError()
          Return if this mail queue has had an error
protected  void incrementSendCount()
           
 void setMailThreader(MailThreader mailThreader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.mail.queue.MailQueueItem
send
 

Field Detail

mailThreader

protected MailThreader mailThreader
Constructor Detail

AbstractMailQueueItem

public AbstractMailQueueItem()

AbstractMailQueueItem

public AbstractMailQueueItem(String subject)
Method Detail

getSubject

public String getSubject()
Description copied from interface: MailQueueItem
The subject of the queued mail item.

Specified by:
getSubject in interface MailQueueItem

getDateQueued

public Date getDateQueued()
Description copied from interface: MailQueueItem
The date this mail item was queued.

Specified by:
getDateQueued in interface MailQueueItem

getSendCount

public int getSendCount()
Description copied from interface: MailQueueItem
Returns this number of this mail item has been sent

Specified by:
getSendCount in interface MailQueueItem

hasError

public boolean hasError()
Description copied from interface: MailQueueItem
Return if this mail queue has had an error

Specified by:
hasError in interface MailQueueItem

incrementSendCount

protected void incrementSendCount()

setMailThreader

public void setMailThreader(MailThreader mailThreader)

execute

public void execute()
             throws Exception
Throws:
Exception


Atlassian Mail is developed by Atlassian Software Systems.