rs.mail.queue.MailSender Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mail-queue Show documentation
Show all versions of mail-queue Show documentation
Queuing e-mails for delivery and process them
/**
*
*/
package rs.mail.queue;
/**
* A helper interface that actually will send e-mails.
*
* @param the type of email object this sender handles.
*
* @author ralph
*
*/
public interface MailSender {
/**
* Sends the message object.
* @param message - the message object
* @param referenceId - a reference ID for the message
* @throws Exception - when sending fails
*/
public void sendMessage(T message, String referenceId) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy