C - Connection type@Experimental public class MultiDbConnectionFuture<C extends BaseRedisMultiDbConnection> extends BaseConnectionFuture<C>
MultiDbConnectionFuture represents the result of an asynchronous multi-database connection initialization.
This future wrapper delegates all method calls to the underlying CompletableFuture.
| Constructor and Description |
|---|
MultiDbConnectionFuture(CompletableFuture<C> delegate)
Create a new
MultiDbConnectionFuture wrapping the given delegate future. |
| Modifier and Type | Method and Description |
|---|---|
static <C extends BaseRedisMultiDbConnection> |
from(CompletableFuture<C> future)
Create a
MultiDbConnectionFuture from a CompletableFuture. |
protected <U> CompletionStage<U> |
wrap(CompletableFuture<U> future)
Subclasses must implement this to wrap a new CompletableFuture in the appropriate subclass type.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, exceptionally, get, get, handle, handleAsync, handleAsync, isCancelled, isDone, 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, whenCompleteAsyncpublic MultiDbConnectionFuture(CompletableFuture<C> delegate)
MultiDbConnectionFuture wrapping the given delegate future.delegate - the underlying CompletableFuturepublic static <C extends BaseRedisMultiDbConnection> MultiDbConnectionFuture<C> from(CompletableFuture<C> future)
MultiDbConnectionFuture from a CompletableFuture.C - Connection typefuture - the CompletableFuture to wrapprotected <U> CompletionStage<U> wrap(CompletableFuture<U> future)
BaseConnectionFuturewrap in class BaseConnectionFuture<C extends BaseRedisMultiDbConnection>U - the new typefuture - the future to wrapCopyright © 2026 lettuce.io. All rights reserved.