@ChannelHandler.Sharable public class ProtoSocketHandler extends io.netty.channel.SimpleChannelInboundHandler<Response>
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HEART_BEAT_SPAN |
| 构造器和说明 |
|---|
ProtoSocketHandler(ApiAuthentication authentication,
ApiComposeCallback callback) |
ProtoSocketHandler(ApiAuthentication authentication,
ApiComposeCallback callback,
int sendInterval,
int receiveInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Response msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final int HEART_BEAT_SPAN
public ProtoSocketHandler(ApiAuthentication authentication, ApiComposeCallback callback)
public ProtoSocketHandler(ApiAuthentication authentication, ApiComposeCallback callback, int sendInterval, int receiveInterval)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Response msg)
throws Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2024. All rights reserved.