Package | Description |
---|---|
io.lettuce.core |
The Redis client package containing
RedisClient for Redis Standalone and Redis Sentinel operations. |
io.lettuce.core.cluster.topology |
Support for cluster topology refresh.
|
Modifier and Type | Method and Description |
---|---|
ConnectionFuture<Void> |
ConnectionFuture.acceptEither(CompletionStage<? extends T> other,
Consumer<? super T> action) |
ConnectionFuture<Void> |
ConnectionFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action) |
ConnectionFuture<Void> |
ConnectionFuture.acceptEitherAsync(CompletionStage<? extends T> other,
Consumer<? super T> action,
Executor executor) |
<U> ConnectionFuture<U> |
ConnectionFuture.applyToEither(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.applyToEitherAsync(CompletionStage<? extends T> other,
Function<? super T,U> fn,
Executor executor) |
static <T> ConnectionFuture<T> |
ConnectionFuture.completed(SocketAddress remoteAddress,
T value)
|
<K,V> ConnectionFuture<StatefulRedisConnection<K,V>> |
RedisClient.connectAsync(RedisCodec<K,V> codec,
RedisURI redisURI)
|
<K,V> ConnectionFuture<StatefulRedisPubSubConnection<K,V>> |
RedisClient.connectPubSubAsync(RedisCodec<K,V> codec,
RedisURI redisURI)
|
ConnectionFuture<T> |
ConnectionFuture.exceptionally(Function<Throwable,? extends T> fn) |
static <T> ConnectionFuture<T> |
ConnectionFuture.from(SocketAddress remoteAddress,
CompletableFuture<T> delegate)
Create a
ConnectionFuture given SocketAddress and CompletableFuture holding the connection
progress. |
<U> ConnectionFuture<U> |
ConnectionFuture.handle(BiFunction<? super T,Throwable,? extends U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.handleAsync(BiFunction<? super T,Throwable,? extends U> fn,
Executor executor) |
protected <K,V,T extends RedisChannelHandler<K,V>> |
AbstractRedisClient.initializeChannelAsync(ConnectionBuilder connectionBuilder)
Connect and initialize a channel from
ConnectionBuilder . |
ConnectionFuture<Void> |
ConnectionFuture.runAfterBoth(CompletionStage<?> other,
Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.runAfterBothAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
ConnectionFuture<Void> |
ConnectionFuture.runAfterEither(CompletionStage<?> other,
Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.runAfterEitherAsync(CompletionStage<?> other,
Runnable action,
Executor executor) |
ConnectionFuture<Void> |
ConnectionFuture.thenAccept(Consumer<? super T> action) |
ConnectionFuture<Void> |
ConnectionFuture.thenAcceptAsync(Consumer<? super T> action) |
ConnectionFuture<Void> |
ConnectionFuture.thenAcceptAsync(Consumer<? super T> action,
Executor executor) |
<U> ConnectionFuture<Void> |
ConnectionFuture.thenAcceptBoth(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> ConnectionFuture<Void> |
ConnectionFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action) |
<U> ConnectionFuture<Void> |
ConnectionFuture.thenAcceptBothAsync(CompletionStage<? extends U> other,
BiConsumer<? super T,? super U> action,
Executor executor) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenApply(Function<? super T,? extends U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenApplyAsync(Function<? super T,? extends U> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor) |
<U,V> ConnectionFuture<V> |
ConnectionFuture.thenCombine(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> ConnectionFuture<V> |
ConnectionFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn) |
<U,V> ConnectionFuture<V> |
ConnectionFuture.thenCombineAsync(CompletionStage<? extends U> other,
BiFunction<? super T,? super U,? extends V> fn,
Executor executor) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenCompose(BiFunction<? super T,? super Throwable,? extends CompletionStage<U>> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenCompose(Function<? super T,? extends CompletionStage<U>> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn) |
<U> ConnectionFuture<U> |
ConnectionFuture.thenComposeAsync(Function<? super T,? extends CompletionStage<U>> fn,
Executor executor) |
ConnectionFuture<Void> |
ConnectionFuture.thenRun(Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.thenRunAsync(Runnable action) |
ConnectionFuture<Void> |
ConnectionFuture.thenRunAsync(Runnable action,
Executor executor) |
ConnectionFuture<T> |
ConnectionFuture.whenComplete(BiConsumer<? super T,? super Throwable> action) |
ConnectionFuture<T> |
ConnectionFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action) |
ConnectionFuture<T> |
ConnectionFuture.whenCompleteAsync(BiConsumer<? super T,? super Throwable> action,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
AbstractRedisClient.getConnection(ConnectionFuture<T> connectionFuture)
Retrieve the connection from
ConnectionFuture . |
Modifier and Type | Method and Description |
---|---|
<K,V> ConnectionFuture<StatefulRedisConnection<K,V>> |
NodeConnectionFactory.connectToNodeAsync(RedisCodec<K,V> codec,
SocketAddress socketAddress)
Connects to a
SocketAddress with the given RedisCodec asynchronously. |
Copyright © 2020 lettuce.io. All rights reserved.