Package com.yahoo.processing.impl
Class ProcessingFuture<V>
java.lang.Object
java.util.concurrent.CompletableFuture<V>
com.yahoo.processing.impl.ProcessingFuture<V>
- All Implemented Interfaces:
CompletionStage<V>,Future<V>
- Direct Known Subclasses:
AbstractDataList.DrainOnGetFuture,IncomingData.NullIncomingData.ImmediateFuture
A
CompletableFuture where get()/get(long, TimeUnit) may have side-effects (e.g trigger the underlying computation).- Author:
- bjorncs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Constructor Details
-
ProcessingFuture
public ProcessingFuture()
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>- Overrides:
isCancelledin classCompletableFuture<V>
-
get
- Specified by:
getin interfaceFuture<V>- Overrides:
getin classCompletableFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public abstract V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Overrides:
getin classCompletableFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
addListener
-