java.lang.Object
java.util.concurrent.CompletableFuture<V>
io.lettuce.core.cluster.PipelinedRedisFuture<V>
- All Implemented Interfaces:
RedisFuture<V>,CompletionStage<V>,Future<V>
public class PipelinedRedisFuture<V> extends CompletableFuture<V> implements RedisFuture<V>
Pipelining for commands that are executed on multiple cluster nodes. Merges results and emits one composite result.
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.concurrent.CompletableFuture
CompletableFuture.AsynchronousCompletionTask -
Constructor Summary
Constructors Constructor Description PipelinedRedisFuture(CompletionStage<V> completionStage)PipelinedRedisFuture(CompletionStage<V> completionStage, Function<V,V> converter)PipelinedRedisFuture(Map<?,? extends CompletionStage<?>> executions, Function<PipelinedRedisFuture<V>,V> converter) -
Method Summary
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, completeAsync, completeAsync, completedFuture, completedStage, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, 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, whenCompleteAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.concurrent.CompletionStage
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Constructor Details
-
PipelinedRedisFuture
-
PipelinedRedisFuture
-
PipelinedRedisFuture
public PipelinedRedisFuture(Map<?,? extends CompletionStage<?>> executions, Function<PipelinedRedisFuture<V>,V> converter)
-
-
Method Details
-
complete
- Overrides:
completein classCompletableFuture<V>
-
completeExceptionally
- Overrides:
completeExceptionallyin classCompletableFuture<V>
-
getError
- Specified by:
getErrorin interfaceRedisFuture<V>- Returns:
- error text, if any error occurred.
-
await
Description copied from interface:RedisFutureWait up to the specified time for the command output to become available.- Specified by:
awaitin interfaceRedisFuture<V>- Parameters:
timeout- Maximum time to wait for a result.unit- Unit of time for the timeout.- Returns:
trueif the output became available.- Throws:
InterruptedException- if the current thread is interrupted while waiting
-