Class AbstractTransformFuture.AsyncTransformFuture<I,O>
java.lang.Object
org.docx4j.com.google.common.util.concurrent.internal.InternalFutureFailureAccess
org.docx4j.com.google.common.util.concurrent.AbstractFuture<V>
org.docx4j.com.google.common.util.concurrent.GwtFluentFutureCatchingSpecialization<V>
org.docx4j.com.google.common.util.concurrent.FluentFuture<V>
org.docx4j.com.google.common.util.concurrent.FluentFuture.TrustedFuture<O>
org.docx4j.com.google.common.util.concurrent.AbstractTransformFuture<I,O,AsyncFunction<? super I,? extends O>,ListenableFuture<? extends O>>
org.docx4j.com.google.common.util.concurrent.AbstractTransformFuture.AsyncTransformFuture<I,O>
- All Implemented Interfaces:
Runnable,Future<O>,AbstractFuture.Trusted<O>,ListenableFuture<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 org.docx4j.com.google.common.util.concurrent.FluentFuture
FluentFuture.TrustedFuture<V>Nested classes/interfaces inherited from class org.docx4j.com.google.common.util.concurrent.AbstractFuture
AbstractFuture.Trusted<V> -
Field Summary
Fields inherited from class org.docx4j.com.google.common.util.concurrent.AbstractTransformFuture
function, inputFuture -
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, @Nullable 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 org.docx4j.com.google.common.util.concurrent.AbstractTransformFuture
afterDone, create, pendingToString, runMethods inherited from class org.docx4j.com.google.common.util.concurrent.FluentFuture.TrustedFuture
addListener, cancel, get, get, isCancelled, isDoneMethods inherited from class org.docx4j.com.google.common.util.concurrent.FluentFuture
from, withTimeoutMethods inherited from class org.docx4j.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, @Nullable 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>>
-