io.netty.channel.ChannelHandler
, io.netty.channel.ChannelInboundHandler
@Sharable
public class PingConnectionHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Constructor | Description |
---|---|
PingConnectionHandler(RedisClientConfig config) |
Modifier and Type | Method | Description |
---|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
|
protected void |
sendPing(io.netty.channel.ChannelHandlerContext ctx) |
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public PingConnectionHandler(RedisClientConfig config)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
protected void sendPing(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2014–2018 The Redisson Project. All rights reserved.