public class NetDispatcher
extends io.netty.channel.SimpleChannelInboundHandler
| Modifier and Type | Field and Description |
|---|---|
private NetworkConnection |
networkConnection |
private boolean |
shutdownOnInactive |
| Constructor and Description |
|---|
NetDispatcher(NetworkConnection networkConnection,
boolean shutdownOnInactive) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext channelHandlerContext,
Object o) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
NetworkConnection |
getNetworkConnection() |
boolean |
isShutdownOnInactive() |
acceptInboundMessage, channelReadchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate final NetworkConnection networkConnection
private boolean shutdownOnInactive
public NetDispatcher(NetworkConnection networkConnection, boolean shutdownOnInactive)
public NetworkConnection getNetworkConnection()
public boolean isShutdownOnInactive()
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic 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.ChannelInboundHandlerAdapterExceptionCopyright © 2020. All rights reserved.