public class ERMailSender extends Object implements Runnable
Modifier and Type | Class and Description |
---|---|
static class |
ERMailSender.SizeOverflowException
Exception class for alerting about a stack overflow
オーバフローの例外発生クラス
|
class |
ERMailSender.Stats
This class is about logging mail event for stats purposes.
|
Modifier and Type | Field and Description |
---|---|
static String |
InvalidEmailNotification |
Modifier and Type | Method and Description |
---|---|
protected javax.mail.Transport |
_connectedTransportForSession(javax.mail.Session session,
String smtpProtocol,
boolean _throwExceptionIfConnectionFails)
Utility method that gets the SMTP Transport method for a session and connects the Transport before returning it.
|
protected void |
_sendMessageNow(ERMessage message,
javax.mail.Transport transport)
Common method used by 'sendMessageNow' and 'sendMessageDeffered' (actually the 'run' method when the thread is
running) to send a message.
|
ERQueue<ERMessage> |
messages() |
protected void |
notifyInvalidEmails(NSArray<String> invalidEmails)
Executes the callback method to notify the calling application of any invalid emails.
|
void |
run()
Don't call this method, this is the thread run loop and is automatically called.
|
void |
sendMessageDeffered(ERMessage message)
Sends a message in a non-blocking way.
|
void |
sendMessageNow(ERMessage message)
Sends a message immediately.
|
static ERMailSender |
sharedMailSender() |
ERMailSender.Stats |
stats() |
public static final String InvalidEmailNotification
public static ERMailSender sharedMailSender()
public ERMailSender.Stats stats()
public void sendMessageDeffered(ERMessage message) throws ERMailSender.SizeOverflowException
public void sendMessageNow(ERMessage message)
protected void _sendMessageNow(ERMessage message, javax.mail.Transport transport) throws javax.mail.MessagingException
javax.mail.MessagingException
protected javax.mail.Transport _connectedTransportForSession(javax.mail.Session session, String smtpProtocol, boolean _throwExceptionIfConnectionFails) throws javax.mail.MessagingException
javax.mail.MessagingException
public void run()
Copyright © 2002 – 2020 Project Wonder.