Package | Description |
---|---|
io.github.avivcarmis.javared.executor | |
io.github.avivcarmis.javared.future |
Modifier and Type | Method and Description |
---|---|
RedFutureOf<OUTPUT> |
RedSynchronizer.execute(INPUT input)
Receive an input and executes it, returns a
RedFutureOf
of the execution output. |
Modifier and Type | Class and Description |
---|---|
class |
OpenRedFutureOf<T>
An implementation of
RedFutureOf , which represents the settable side of the typed future. |
Modifier and Type | Method and Description |
---|---|
RedFutureOf<T> |
RedFutureOf.addFailureCallback(Callback<Throwable> callback) |
RedFutureOf<T> |
OpenRedFutureOf.addFailureCallback(Callback<Throwable> callback) |
RedFutureOf<T> |
RedFutureOf.addFailureCallback(Executor executor,
Callback<Throwable> callback) |
RedFutureOf<T> |
OpenRedFutureOf.addFailureCallback(Executor executor,
Callback<Throwable> callback) |
RedFutureOf<T> |
RedFutureOf.addFinallyCallback(EmptyCallback callback) |
RedFutureOf<T> |
OpenRedFutureOf.addFinallyCallback(EmptyCallback callback) |
RedFutureOf<T> |
RedFutureOf.addFinallyCallback(Executor executor,
EmptyCallback callback) |
RedFutureOf<T> |
OpenRedFutureOf.addFinallyCallback(Executor executor,
EmptyCallback 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(EmptyCallback callback) |
RedFutureOf<T> |
OpenRedFutureOf.addSuccessCallback(EmptyCallback 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) |
RedFutureOf<T> |
RedFutureOf.addSuccessCallback(Executor executor,
EmptyCallback callback) |
RedFutureOf<T> |
OpenRedFutureOf.addSuccessCallback(Executor executor,
EmptyCallback callback) |
static <T> RedFutureOf<T> |
RedFuture.convert(Future<T> future)
|
static <T> RedFutureOf<T> |
RedFuture.convert(Future<T> future,
Executor executor)
|
static <T> RedFutureOf<T> |
RedFuture.failedOf(Throwable t) |
static <T> RedFutureOf<T> |
RedFuture.resolvedOf(T value) |
Modifier and Type | Method and Description |
---|---|
void |
OpenRedFutureOf.follow(Executor executor,
RedFutureOf<T> future)
Tells the current open future to follow the given future status.
|
void |
OpenRedFutureOf.follow(RedFutureOf<T> future)
Tells the current open future to follow the given future status.
|
Copyright © 2017. All rights reserved.