@FunctionalInterface public static interface LettuceConnectionProvider.TargetAware
LettuceConnectionProvider for providers that allow connection creation to specific nodes.| Modifier and Type | Method and Description |
|---|---|
default <T extends io.lettuce.core.api.StatefulConnection<?,?>> |
getConnection(Class<T> connectionType,
io.lettuce.core.RedisURI redisURI)
Request a connection given
connectionType for a specific RedisURI. |
<T extends io.lettuce.core.api.StatefulConnection<?,?>> |
getConnectionAsync(Class<T> connectionType,
io.lettuce.core.RedisURI redisURI)
Request asynchronously a connection given
connectionType for a specific RedisURI. |
default <T extends io.lettuce.core.api.StatefulConnection<?,?>> T getConnection(Class<T> connectionType, io.lettuce.core.RedisURI redisURI)
connectionType for a specific RedisURI. Providing a connection type
allows specialization to provide a more specific connection type.connectionType - must not be null.redisURI - must not be null.<T extends io.lettuce.core.api.StatefulConnection<?,?>> CompletionStage<T> getConnectionAsync(Class<T> connectionType, io.lettuce.core.RedisURI redisURI)
connectionType for a specific RedisURI. Providing a
connection type allows specialization to provide a more specific connection type.connectionType - must not be null.redisURI - must not be null.CompletionStage that is notified with the connection progress.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.