com.atlassian.mail.queue
Class AbstractMailQueueItem

java.lang.Object
  extended by com.atlassian.mail.queue.AbstractMailQueueItem
All Implemented Interfaces:
com.atlassian.core.task.Task, MailQueueItem, java.io.Serializable
Direct Known Subclasses:
SingleMailQueueItem

public abstract class AbstractMailQueueItem
extends java.lang.Object
implements MailQueueItem

See Also:
Serialized Form

Field Summary
protected  MailThreader mailThreader
           
 
Constructor Summary
AbstractMailQueueItem()
           
AbstractMailQueueItem(java.lang.String subject)
           
 
Method Summary
 void execute()
           
 java.util.Date getDateQueued()
          The date this mail item was queued.
 int getSendCount()
          Returns this number of this mail item has been sent
 java.lang.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(java.lang.String subject)
Method Detail

getSubject

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

Specified by:
getSubject in interface MailQueueItem

getDateQueued

public java.util.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 java.lang.Exception
Specified by:
execute in interface com.atlassian.core.task.Task
Throws:
java.lang.Exception


Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.