| Modifier and Type | Class and Description |
|---|---|
class |
NestedTransformableFuture<U> |
class |
NestedTransformableFutureIgnoringReturn |
| Modifier and Type | Method and Description |
|---|---|
static <T> TransformableFuture<T> |
TransformableFuture.immediate(T result) |
static <T> TransformableFuture<T> |
TransformableFuture.immediateFailed(Exception exception) |
TransformableFuture<? extends Responses<T,U>> |
Requester.request(Collection<? extends T> requests) |
TransformableFuture<? extends Responses<T,U>> |
Requester.request(T... requests) |
<U> TransformableFuture<U> |
TransformableFuture.transformAsync(FutureTransform<T,TransformableFuture<U>> futureTransform)
Creates a new
Future which is backed by the Future returned from the provided
futureTransform function. |
<V> TransformableFuture<V> |
NestedTransformableFuture.transformAsync(FutureTransform<U,TransformableFuture<V>> futureTransform) |
<V> TransformableFuture<V> |
NestedTransformableFutureIgnoringReturn.transformAsync(FutureTransform<Void,TransformableFuture<V>> futureTransform) |
TransformableFuture<Void> |
TransformableFuture.transformAsyncIgnoringReturn(FutureTransform<T,TransformableFuture<?>> futureTransform)
Like
transformAsync(FutureTransform), except useful in cases where you intentionally
do not care about the result value contained in the transform functions returned
Future. |
TransformableFuture<Void> |
NestedTransformableFuture.transformAsyncIgnoringReturn(FutureTransform<U,TransformableFuture<?>> futureTransform) |
TransformableFuture<Void> |
NestedTransformableFutureIgnoringReturn.transformAsyncIgnoringReturn(FutureTransform<Void,TransformableFuture<?>> futureTransform) |
<U> TransformableFuture<U> |
TransformableFuture.transformSync(FutureTransform<T,U> futureTransform)
Creates a new
Future which is completed immediately when this Future
completes, with a value that is the result of applying the provided futureTransform
function to this Future's result. |
<V> TransformableFuture<V> |
NestedTransformableFuture.transformSync(FutureTransform<U,V> futureTransform) |
<V> TransformableFuture<V> |
NestedTransformableFutureIgnoringReturn.transformSync(FutureTransform<Void,V> futureTransform) |
TransformableFuture<T> |
TransformableFuture.whenDoneOrCancelled(FutureDoneCallback callback)
An asynchronous "finally" block.
|
TransformableFuture<Void> |
NestedTransformableFutureIgnoringReturn.whenDoneOrCancelled(FutureDoneCallback callback)
Because the result in this context is the result of a nested future, and "done" implies
having a result, we put off calling the callbacks until the nested future is done to
coincide with when this future has a result.
|
TransformableFuture<U> |
NestedTransformableFuture.whenDoneOrCancelled(FutureDoneCallback callback)
Because the result in this context is the result of a nested future, and "done" implies
having a result, we put off calling the callbacks until the nested future is done to
coincide with when this future has a result.
|
| Modifier and Type | Method and Description |
|---|---|
<U> TransformableFuture<U> |
TransformableFuture.transformAsync(FutureTransform<T,TransformableFuture<U>> futureTransform)
Creates a new
Future which is backed by the Future returned from the provided
futureTransform function. |
<V> TransformableFuture<V> |
NestedTransformableFuture.transformAsync(FutureTransform<U,TransformableFuture<V>> futureTransform) |
<V> TransformableFuture<V> |
NestedTransformableFutureIgnoringReturn.transformAsync(FutureTransform<Void,TransformableFuture<V>> futureTransform) |
TransformableFuture<Void> |
TransformableFuture.transformAsyncIgnoringReturn(FutureTransform<T,TransformableFuture<?>> futureTransform)
Like
transformAsync(FutureTransform), except useful in cases where you intentionally
do not care about the result value contained in the transform functions returned
Future. |
TransformableFuture<Void> |
NestedTransformableFuture.transformAsyncIgnoringReturn(FutureTransform<U,TransformableFuture<?>> futureTransform) |
TransformableFuture<Void> |
NestedTransformableFutureIgnoringReturn.transformAsyncIgnoringReturn(FutureTransform<Void,TransformableFuture<?>> futureTransform) |
| Constructor and Description |
|---|
NestedTransformableFuture(TransformableFuture<TransformableFuture<U>> nestedFuture) |
NestedTransformableFutureIgnoringReturn(TransformableFuture<TransformableFuture<?>> nestedFuture) |
| Constructor and Description |
|---|
NestedTransformableFuture(TransformableFuture<TransformableFuture<U>> nestedFuture) |
NestedTransformableFutureIgnoringReturn(TransformableFuture<TransformableFuture<?>> nestedFuture) |
Copyright © 2016. All rights reserved.