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, inputFutureGENERATE_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, runaddListener, cancel, get, get, isCancelled, isDoneaddCallback, catching, catchingAsync, from, from, transform, transformAsync, withTimeout, withTimeoutinterruptTask, maybePropagateCancellationTo, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterruptedAsyncTransformFuture(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
AbstractTransformFuturedoTransform in class AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>java.lang.Exceptionvoid setResult(ListenableFuture<? extends O> result)
AbstractTransformFuturesetResult in class AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>