private static final class AbstractTransformFuture.AsyncTransformFuture<I,O> extends AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>
AbstractTransformFuture
that delegates to an AsyncFunction
and AbstractFuture.setFuture(ListenableFuture)
.FluentFuture.TrustedFuture<V>
AbstractFuture.Trusted<V>
function, inputFuture
GENERATE_CANCELLATION_CAUSES
Constructor and Description |
---|
AsyncTransformFuture(ListenableFuture<? extends I> inputFuture,
AsyncFunction<? super I,? extends O> function) |
Modifier and Type | Method and Description |
---|---|
(package private) ListenableFuture<? extends O> |
doTransform(AsyncFunction<? super I,? extends O> function,
I input)
Template method for subtypes to actually run the transform.
|
(package private) void |
setResult(ListenableFuture<? extends O> result)
Template method for subtypes to actually set the result.
|
afterDone, create, create, pendingToString, run
addListener, cancel, get, get, isCancelled, isDone
addCallback, catching, catchingAsync, from, from, transform, transformAsync, withTimeout, withTimeout
interruptTask, maybePropagateCancellationTo, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I,? extends O> function)
ListenableFuture<? extends O> doTransform(AsyncFunction<? super I,? extends O> function, I input) throws java.lang.Exception
AbstractTransformFuture
doTransform
in class AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>
java.lang.Exception
void setResult(ListenableFuture<? extends O> result)
AbstractTransformFuture
setResult
in class AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>