public interface AsyncResponse
Provides both a Future as well as support for direct callbacks.
MailerGenericBuilder.async()| Modifier and Type | Interface and Description |
|---|---|
static interface |
AsyncResponse.ExceptionConsumer
Simplified version of Java 8's Consumer, so you can easily implement exception handlers in
Java <= 7. |
| Modifier and Type | Method and Description |
|---|---|
Future<?> |
getFuture() |
void |
onException(AsyncResponse.ExceptionConsumer errorHandler)
Mimicks promise behavior in a very limited way.
|
void |
onSuccess(Runnable onSuccess)
Mimicks promise behavior in a very limited way.
|
void onSuccess(Runnable onSuccess)
onSuccess - Why Runnable? Refer to this answervoid onException(AsyncResponse.ExceptionConsumer errorHandler)
Copyright © 2009–2022. All rights reserved.