com.atlassian.mail.queue
Class AbstractMailQueueItem
java.lang.Object
com.atlassian.mail.queue.AbstractMailQueueItem
- All Implemented Interfaces:
- MailQueueItem
- Direct Known Subclasses:
- SingleMailQueueItem
public abstract class AbstractMailQueueItem
- extends Object
- implements MailQueueItem
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mailThreader
protected MailThreader mailThreader
AbstractMailQueueItem
public AbstractMailQueueItem()
AbstractMailQueueItem
public AbstractMailQueueItem(String subject)
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