public interface AspirinListener
This is a listener interface. This defines the mail delivery listeners, which could get messages if an email is delivered to a recipient (with the delivery result) and if an email is delivered to all recipients.
| Modifier and Type | Method and Description |
|---|---|
void |
delivered(String mailId,
String recipient,
ResultState state,
String resultContent)
Called on delivery comes back with a persistent delivery result.
|
void delivered(String mailId, String recipient, ResultState state, String resultContent)
mailId - Unique mail ID extracted from mail header.recipient - Recipient email address. It could be null - if state is
finished and there were more recipients, then it is allowed to be null.state - Delivery result state: SENT, FAILED, FINISHED. FINISHED
state is associated to a unique mail id - we get this state when all
recipients has a persistent, final delivery state.resultContent - Content of delivery result. On FINISHED state it
could be null or empty.Copyright © 2013. All Rights Reserved.