org.nlab.smtp.transport.strategy.ConnectionStrategy 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
The newest version!
package org.nlab.smtp.transport.strategy;
import jakarta.mail.MessagingException;
import jakarta.mail.Transport;
/**
* Connection strategy that abstract {@link Transport#connect}
*
* Created by nlabrot on 04/06/15.
*/
public interface ConnectionStrategy {
void connect(Transport transport) throws MessagingException;
}