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>,java.lang.Runnable,java.util.concurrent.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>>
AnAbstractTransformFuturethat delegates to anAsyncFunctionandAbstractFuture.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, inputFuture
-
-
Constructor Summary
Constructors Constructor Description AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I,? extends O> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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) 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, run
-
Methods inherited from class com.google.common.util.concurrent.FluentFuture.TrustedFuture
addListener, cancel, get, get, isCancelled, isDone
-
Methods inherited from class com.google.common.util.concurrent.FluentFuture
addCallback, catching, catchingAsync, from, from, transform, transformAsync, withTimeout, withTimeout
-
Methods inherited from class com.google.common.util.concurrent.AbstractFuture
interruptTask, maybePropagateCancellationTo, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
-
-
-
-
Constructor Detail
-
AsyncTransformFuture
AsyncTransformFuture(ListenableFuture<? extends I> inputFuture, AsyncFunction<? super I,? extends O> function)
-
-
Method Detail
-
doTransform
ListenableFuture<? extends O> doTransform(AsyncFunction<? super I,? extends O> function, I input) throws java.lang.Exception
Description 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:
java.lang.Exception
-
setResult
void setResult(ListenableFuture<? extends O> result)
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>>
-
-