public class RedisHandshakeHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
ConnectionInitializer.| Constructor and Description |
|---|
RedisHandshakeHandler(ConnectionInitializer connectionInitializer,
ClientResources clientResources,
Duration initializeTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
CompletionStage<Void> |
channelInitialized() |
void |
channelRegistered(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
fail(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Complete the handshake future with an error and close the channel..
|
protected void |
succeed()
Complete the handshake future successfully.
|
channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic RedisHandshakeHandler(ConnectionInitializer connectionInitializer, ClientResources clientResources, Duration initializeTimeout)
public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelRegistered in interface io.netty.channel.ChannelInboundHandlerchannelRegistered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void succeed()
protected void fail(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
public CompletionStage<Void> channelInitialized()
Copyright © 2024 lettuce.io. All rights reserved.