V - Value type.public interface RedisFuture<V> extends CompletionStage<V>, Future<V>
RedisFuture represents the result of an asynchronous computation, extending CompletionStage. The execution
of the notification happens either on finish of the future execution or, if the future is completed already, immediately.| 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.
|
String |
getError() |
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, whenCompleteAsyncString getError()
boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
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 © 2020 lettuce.io. All rights reserved.