Package io.lettuce.core
Class SslConnectionBuilder
- java.lang.Object
-
- io.lettuce.core.ConnectionBuilder
-
- io.lettuce.core.SslConnectionBuilder
-
public class SslConnectionBuilder extends ConnectionBuilder
Connection builder for SSL connections. This class is part of the internal API.- Author:
- Mark Paluch, Amin Mohtashami, Felipe Ruiz, Aashish Amrute
-
-
Field Summary
-
Fields inherited from class io.lettuce.core.ConnectionBuilder
INIT_FAILURE, REDIS_URI
-
-
Constructor Summary
Constructors Constructor Description SslConnectionBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelInitializer<Channel>
build(SocketAddress socketAddress)
protected List<ChannelHandler>
buildHandlers()
static boolean
isSslChannelInitializer(ChannelHandler handler)
Check whether theChannelHandler
is aSslConnectionBuilder.SslChannelInitializer
.SslConnectionBuilder
ssl(RedisURI redisURI)
static SslConnectionBuilder
sslConnectionBuilder()
static ChannelHandler
withSocketAddress(ChannelHandler handler, SocketAddress socketAddress)
Create an updatedSslConnectionBuilder.SslChannelInitializer
with the newSocketAddress
in place.-
Methods inherited from class io.lettuce.core.ConnectionBuilder
apply, bootstrap, bootstrap, channelGroup, clientOptions, clientOptions, clientResources, clientResources, commandHandler, configureBootstrap, connection, connection, connectionBuilder, connectionEvents, connectionInitializer, createConnectionWatchdog, endpoint, endpoint, getHandshakeHandler, getRedisURI, getTimeout, reconnectionListener, socketAddress, socketAddressSupplier, timeout
-
-
-
-
Method Detail
-
ssl
public SslConnectionBuilder ssl(RedisURI redisURI)
-
sslConnectionBuilder
public static SslConnectionBuilder sslConnectionBuilder()
-
isSslChannelInitializer
public static boolean isSslChannelInitializer(ChannelHandler handler)
Check whether theChannelHandler
is aSslConnectionBuilder.SslChannelInitializer
.- Parameters:
handler
-- Returns:
- Since:
- 6.0.8
-
withSocketAddress
public static ChannelHandler withSocketAddress(ChannelHandler handler, SocketAddress socketAddress)
Create an updatedSslConnectionBuilder.SslChannelInitializer
with the newSocketAddress
in place.- Parameters:
handler
-socketAddress
-- Returns:
- Since:
- 6.0.8
-
buildHandlers
protected List<ChannelHandler> buildHandlers()
- Overrides:
buildHandlers
in classConnectionBuilder
-
build
public ChannelInitializer<Channel> build(SocketAddress socketAddress)
- Overrides:
build
in classConnectionBuilder
-
-