org.nlab.smtp.transport.ClosableSmtpConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smtp-connection-pool Show documentation
Show all versions of smtp-connection-pool Show documentation
SMTP Connection Pool which uses JavaMail and Apache Common Pool
package org.nlab.smtp.transport;
import javax.mail.Address;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Transport;
import javax.mail.event.TransportListener;
/**
* Created by nlabrot on 30/04/15.
*/
public interface ClosableSmtpConnection extends AutoCloseable {
void sendMessage(Message msg, Address[] addresses) throws MessagingException;
boolean isConnected();
void addTransportListener(TransportListener l);
void removeTransportListener(TransportListener l);
void clearListeners();
Transport getDelegate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy