public class SMTPSendThread
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
SMTPSendThread(javax.mail.internet.MimeMessage theMessage,
PersonalizedEmailContent thePEC,
PurgingStringBuffer theSuccessfulRecipientsPurgingBuffer,
java.lang.String theThreadName,
boolean recordResult)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getFailedRecipients()
The method is used to get the list of failed recipients.
|
long |
getFailureCount()
The method help to get the Failure count for debug purpose.
|
long |
getSuccessCount()
The method help to get the success count for debug purpose.
|
java.util.List |
getSuccessfulRecipients()
The method is used to get the list of successful recipients.
|
java.util.List |
getTargetQueue()
The method is used to get the queue to store the message to be sent.
|
java.lang.String |
getThreadName()
The method is used to get the thread name.
|
javax.mail.Transport |
getTransport()
The method is used to get the message transport.
|
boolean |
isFinished()
The method tell if this thread is finish one run.
|
void |
release()
This method performs cleanup when the thread is destroyed.
|
void |
run()
Starts the thread.
|
void |
setTransport(javax.mail.Transport theTransport)
The method is used to set the message transport.
|
public static final java.lang.String COPYRIGHT
public SMTPSendThread(javax.mail.internet.MimeMessage theMessage, PersonalizedEmailContent thePEC, PurgingStringBuffer theSuccessfulRecipientsPurgingBuffer, java.lang.String theThreadName, boolean recordResult)
theMessage
- The MimeMessage object keeps the message to send.thePEC
- The PersonalizedEmailContent object holds the content to send.theSuccessfulRecipientsPurgingBuffer
- The PurgingStringBuffer object is used to store the successful recipient addresses.theThreadName
- The string holds the name of this thread.recordResult
- The boolean flag to tell if need to record the sending result.public java.util.List getFailedRecipients()
public long getFailureCount()
public long getSuccessCount()
public java.util.List getSuccessfulRecipients()
public java.util.List getTargetQueue()
public java.lang.String getThreadName()
public javax.mail.Transport getTransport()
public boolean isFinished()
public void release()
public void run()
public void setTransport(javax.mail.Transport theTransport)
theTransport
- the transport used for message sending.