@ChannelHandler.Sharable public class DisconnectNotificationHandler extends AdvancedChannelInboundHandler<EncapsulatedPacket>
| Modifier and Type | Field and Description |
|---|---|
static DisconnectNotificationHandler |
INSTANCE |
static String |
NAME |
| Constructor and Description |
|---|
DisconnectNotificationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptInboundMessage(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
EncapsulatedPacket packet) |
channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final DisconnectNotificationHandler INSTANCE
public static final String NAME
protected boolean acceptInboundMessage(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
acceptInboundMessage in class AdvancedChannelInboundHandler<EncapsulatedPacket>Exceptionprotected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
EncapsulatedPacket packet)
throws Exception
channelRead0 in class AdvancedChannelInboundHandler<EncapsulatedPacket>ExceptionCopyright © 2018–2022. All rights reserved.