Class ConnectionExceptionMessageHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<ConnectionExceptionMessage>
-
- org.drasyl.peer.connection.handler.ConnectionExceptionMessageHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable public class ConnectionExceptionMessageHandler extends io.netty.channel.SimpleChannelInboundHandler<ConnectionExceptionMessage>
Fires a channel wide close event, when aConnectionExceptionMessage
received.
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_HANDLER
static ConnectionExceptionMessageHandler
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
channelRead0(io.netty.channel.ChannelHandlerContext ctx, ConnectionExceptionMessage msg)
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
INSTANCE
public static final ConnectionExceptionMessageHandler INSTANCE
-
EXCEPTION_MESSAGE_HANDLER
public static final String EXCEPTION_MESSAGE_HANDLER
- See Also:
- Constant Field Values
-
-
Method Detail
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, ConnectionExceptionMessage msg)
- Specified by:
channelRead0
in classio.netty.channel.SimpleChannelInboundHandler<ConnectionExceptionMessage>
-
-