Class AbstractTransformFuture.AsyncTransformFuture<I,O>
java.lang.Object
com.google.common.util.concurrent.internal.InternalFutureFailureAccess
com.google.common.util.concurrent.AbstractFuture<V>
com.google.common.util.concurrent.GwtFluentFutureCatchingSpecialization<V>
com.google.common.util.concurrent.FluentFuture<V>
com.google.common.util.concurrent.FluentFuture.TrustedFuture<O>
com.google.common.util.concurrent.AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>
com.google.common.util.concurrent.AbstractTransformFuture.AsyncTransformFuture<I,O>
- All Implemented Interfaces:
AbstractFuture.Trusted<O>,ListenableFuture<O>,Runnable,Future<O>
- Enclosing class:
- AbstractTransformFuture<I,
O, F, T>
private static final class AbstractTransformFuture.AsyncTransformFuture<I,O>
extends AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>
An
AbstractTransformFuture that delegates to an AsyncFunction and AbstractFuture.setFuture(ListenableFuture).-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.util.concurrent.FluentFuture
FluentFuture.TrustedFuture<V>Nested classes/interfaces inherited from class com.google.common.util.concurrent.AbstractFuture
AbstractFuture.Trusted<V> -
Field Summary
Fields inherited from class com.google.common.util.concurrent.AbstractTransformFuture
function, inputFutureFields inherited from class com.google.common.util.concurrent.AbstractFuture
GENERATE_CANCELLATION_CAUSES -
Constructor Summary
ConstructorsConstructorDescriptionAsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I, ? extends O> function) -
Method Summary
Modifier and TypeMethodDescription(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) voidsetResult(ListenableFuture<? extends O> result) Template method for subtypes to actually set the result.Methods inherited from class com.google.common.util.concurrent.AbstractTransformFuture
afterDone, create, create, pendingToString, runMethods inherited from class com.google.common.util.concurrent.FluentFuture.TrustedFuture
addListener, cancel, get, get, isCancelled, isDoneMethods inherited from class com.google.common.util.concurrent.FluentFuture
addCallback, catching, catchingAsync, from, from, transform, transformAsync, withTimeout, withTimeoutMethods inherited from class com.google.common.util.concurrent.AbstractFuture
interruptTask, maybePropagateCancellationTo, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
-
Constructor Details
-
AsyncTransformFuture
AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I, ? extends O> function)
-
-
Method Details
-
doTransform
ListenableFuture<? extends O> doTransform(AsyncFunction<? super I, ? extends O> function, I input) throws ExceptionDescription copied from class:AbstractTransformFutureTemplate method for subtypes to actually run the transform.- Specified by:
doTransformin classAbstractTransformFuture<I,O, AsyncFunction<? super I, ? extends O>, ListenableFuture<? extends O>> - Throws:
Exception
-
setResult
Description copied from class:AbstractTransformFutureTemplate method for subtypes to actually set the result.- Specified by:
setResultin classAbstractTransformFuture<I,O, AsyncFunction<? super I, ? extends O>, ListenableFuture<? extends O>>
-