public class EmailResult
extends java.lang.Object
implements java.io.Serializable
getEmail() will return the e-mail that was sent to the
smtp server. If getEmail() is null, getThrowable()| Constructor and Description |
|---|
EmailResult(SerialisedEmail email)
Create an EmailResult for a successful sent e-mail message.
|
EmailResult(SerialisedEmail email,
java.lang.Throwable throwable,
java.lang.Boolean retryPossible) |
EmailResult(java.lang.Throwable throwable,
java.lang.Boolean retryPossible)
Create an EmailResult for an e-mail message where problems occurred while
sending.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asynchronousRetry() |
SerialisedEmail |
getEmail() |
java.lang.Throwable |
getThrowable() |
boolean |
isRetryPossible() |
boolean |
successful() |
public EmailResult(SerialisedEmail email)
email - The e-mail message that was successfully sent. This can be
null to indicate an asynchronous retry to send the
mail.public EmailResult(java.lang.Throwable throwable,
java.lang.Boolean retryPossible)
throwable - The reason, why sending the e-mail message failed.retryPossible - Whether a later retry would make sense. null
will be interpreted as false.public EmailResult(SerialisedEmail email, java.lang.Throwable throwable, java.lang.Boolean retryPossible)
email - The e-mail message that was sent or null if any
problem occurred.throwable - The reason, why sending the e-mail message failed or
null if no problems occurred.retryPossible - Whether a later retry would make sense. null
will be interpreted as false.public boolean successful()
public boolean asynchronousRetry()
public SerialisedEmail getEmail()
null will be returned.public java.lang.Throwable getThrowable()
null will be returned.public boolean isRetryPossible()