public class PipelinedRedisFuture<V> extends CompletableFuture<V> implements RedisFuture<V>
CompletableFuture.AsynchronousCompletionTask
Constructor and Description |
---|
PipelinedRedisFuture(CompletionStage<V> completionStage) |
PipelinedRedisFuture(CompletionStage<V> completionStage,
Function<V,V> converter) |
PipelinedRedisFuture(Map<?,? extends CompletionStage<?>> executions,
Function<PipelinedRedisFuture<V>,V> converter) |
Modifier and Type | Method and Description |
---|---|
boolean |
await(long timeout,
TimeUnit unit)
Wait up to the specified time for the command output to become available.
|
boolean |
complete(V value) |
boolean |
completeExceptionally(Throwable ex) |
String |
getError() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, completedFuture, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, 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
public PipelinedRedisFuture(CompletionStage<V> completionStage)
public PipelinedRedisFuture(CompletionStage<V> completionStage, Function<V,V> converter)
public PipelinedRedisFuture(Map<?,? extends CompletionStage<?>> executions, Function<PipelinedRedisFuture<V>,V> converter)
public boolean complete(V value)
complete
in class CompletableFuture<V>
public boolean completeExceptionally(Throwable ex)
completeExceptionally
in class CompletableFuture<V>
public String getError()
getError
in interface RedisFuture<V>
public boolean await(long timeout, TimeUnit unit) throws InterruptedException
RedisFuture
await
in interface RedisFuture<V>
timeout
- Maximum time to wait for a result.unit
- Unit of time for the timeout.true
if the output became available.InterruptedException
- if the current thread is interrupted while waitingCopyright © 2023 lettuce.io. All rights reserved.