@ChannelHandler.Sharable
public class KafkaConnectionHandler
extends io.netty.channel.ChannelDuplexHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
KafkaConnectionHandler(KafkaConnectionManager kafkaConnectionManager) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
connectionStatistic(io.netty.channel.ChannelHandlerContext ctx,
org.joyqueue.network.transport.command.Command command) |
bind, close, connect, deregister, disconnect, flush, read, writechannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic KafkaConnectionHandler(KafkaConnectionManager kafkaConnectionManager)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead 在接口中 io.netty.channel.ChannelInboundHandlerchannelRead 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected void connectionStatistic(io.netty.channel.ChannelHandlerContext ctx,
org.joyqueue.network.transport.command.Command command)
Copyright © 2020 Joyqueue Community. All rights reserved.