Package | Description |
---|---|
io.github.avivcarmis.javared.future |
Modifier and Type | Method and Description |
---|---|
RedFutureOf<T> |
RedFutureOf.addFailureCallback(Callback<Throwable> callback) |
RedFuture |
RedFuture.addFailureCallback(Callback<Throwable> callback)
Attach a callback receiving a throwable to be invoked when the future is failed.
|
RedFutureOf<T> |
OpenRedFutureOf.addFailureCallback(Callback<Throwable> callback) |
RedFuture |
BaseOpenRedFuture.addFailureCallback(Callback<Throwable> callback) |
RedFutureOf<T> |
RedFutureOf.addFailureCallback(Executor executor,
Callback<Throwable> callback) |
RedFuture |
RedFuture.addFailureCallback(Executor executor,
Callback<Throwable> callback)
Attach a callback receiving a throwable to be invoked when the future is failed.
|
RedFutureOf<T> |
OpenRedFutureOf.addFailureCallback(Executor executor,
Callback<Throwable> callback) |
RedFuture |
BaseOpenRedFuture.addFailureCallback(Executor executor,
Callback<Throwable> callback) |
RedFutureOf<T> |
RedFutureOf.addSuccessCallback(Callback<T> callback)
Attach a single parameter callback to be invoked when the future is successfully resolved,
with the parameter containing the resulted value of the future.
|
RedFutureOf<T> |
OpenRedFutureOf.addSuccessCallback(Callback<T> callback) |
RedFutureOf<T> |
RedFutureOf.addSuccessCallback(Executor executor,
Callback<T> callback)
Attach a single parameter callback to be invoked when the future is successfully resolved,
with the parameter containing the resulted value of the future.
|
RedFutureOf<T> |
OpenRedFutureOf.addSuccessCallback(Executor executor,
Callback<T> callback) |
protected <K> com.google.common.util.concurrent.FutureCallback<K> |
BaseOpenRedFuture.safeCallback(Callback<K> onSuccess,
Callback<Throwable> onFailure)
Generates a guava
FutureCallback to attach to a ListenableFuture with given
success and failure callbacks. |
protected <K> com.google.common.util.concurrent.FutureCallback<K> |
BaseOpenRedFuture.safeCallback(Callback<K> onSuccess,
Callback<Throwable> onFailure)
Generates a guava
FutureCallback to attach to a ListenableFuture with given
success and failure callbacks. |
Copyright © 2017. All rights reserved.