|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.mail.MailQueue
Bundles a number of messages and sends them all at once. Saves the overhead of opening a separate connection to the SMTP server for each individual message.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
MailQueue()
Creates an empty mail queue. |
Method Summary | |
void |
addMail(Mail msg)
Adds a mail message to the queue. |
int |
getCount()
Gets the number of messages in the queue. |
void |
send()
Sends all messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public MailQueue()
Method Detail |
public void addMail(Mail msg)
msg
- the message to addpublic int getCount()
public void send() throws javax.mail.MessagingException, javax.mail.SendFailedException
javax.mail.MessagingException
javax.mail.SendFailedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |