Package com.yahoo.processing.response
Class IncomingData.NullIncomingData.ImmediateFuture<DATATYPE extends Data>
java.lang.Object
java.util.concurrent.CompletableFuture<V>
com.yahoo.processing.impl.ProcessingFuture<DataList<DATATYPE>>
com.yahoo.processing.response.IncomingData.NullIncomingData.ImmediateFuture<DATATYPE>
- All Implemented Interfaces:
CompletionStage<DataList<DATATYPE>>,Future<DataList<DATATYPE>>
- Enclosing class:
- IncomingData.NullIncomingData<DATATYPE extends Data>
public static class IncomingData.NullIncomingData.ImmediateFuture<DATATYPE extends Data>
extends ProcessingFuture<DataList<DATATYPE>>
A future which is always done and incurs no synchronization.
This is semantically the same as Futures.immediateFuture but contrary to it,
this never causes any memory synchronization when accessed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.yahoo.processing.impl.ProcessingFuture
addListenerMethods 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, 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
-
ImmediateFuture
-
-
Method Details
-
cancel
public boolean cancel(boolean b) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<DATATYPE extends Data>- Overrides:
isCancelledin classProcessingFuture<DataList<DATATYPE extends Data>>
-
isDone
public boolean isDone() -
get
-
get
-