public class RedisHandshakeHandler extends ChannelInboundHandlerAdapter
ConnectionInitializer.ChannelHandler.Sharable| Constructor and Description |
|---|
RedisHandshakeHandler(ConnectionInitializer connectionInitializer,
ClientResources clientResources,
Duration initializeTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(ChannelHandlerContext ctx) |
void |
channelInactive(ChannelHandlerContext ctx) |
CompletionStage<Void> |
channelInitialized() |
void |
channelRegistered(ChannelHandlerContext ctx) |
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause) |
protected void |
fail(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, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedpublic RedisHandshakeHandler(ConnectionInitializer connectionInitializer, ClientResources clientResources, Duration initializeTimeout)
public void channelRegistered(ChannelHandlerContext ctx) throws Exception
channelRegistered in interface ChannelInboundHandlerchannelRegistered in class ChannelInboundHandlerAdapterExceptionpublic void channelInactive(ChannelHandlerContext ctx) throws Exception
channelInactive in interface ChannelInboundHandlerchannelInactive in class ChannelInboundHandlerAdapterExceptionpublic void channelActive(ChannelHandlerContext ctx)
channelActive in interface ChannelInboundHandlerchannelActive in class ChannelInboundHandlerAdapterpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterExceptionprotected void succeed()
protected void fail(ChannelHandlerContext ctx, Throwable cause)
public CompletionStage<Void> channelInitialized()
Copyright © 2024 lettuce.io. All rights reserved.