org.mailster.smtp.api.handler.Delivery Maven / Gradle / Ivy
package org.mailster.smtp.api.handler;
import org.mailster.smtp.api.MessageListener;
/**
* Tracks which listeners need delivery.
*
* @author De Oliveira Edouard <[email protected]>
*/
public class Delivery {
private MessageListener listener;
private String recipient;
public Delivery(MessageListener listener, String recipient) {
this.listener = listener;
this.recipient = recipient;
}
public MessageListener getListener() {
return this.listener;
}
public String getRecipient() {
return this.recipient;
}
}