private static class ServerBootstrap.ServerBootstrapAcceptor extends ChannelInboundHandlerAdapter
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[] |
childAttrs |
private EventLoopGroup |
childGroup |
private ChannelHandler |
childHandler |
private java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[] |
childOptions |
Constructor and Description |
---|
ServerBootstrapAcceptor(EventLoopGroup childGroup,
ChannelHandler childHandler,
java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[] childOptions,
java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[] childAttrs) |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(ChannelHandlerContext ctx,
java.lang.Object msg)
Calls
ChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline . |
void |
exceptionCaught(ChannelHandlerContext ctx,
java.lang.Throwable cause)
Calls
ChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline . |
private static void |
forceClose(Channel child,
java.lang.Throwable t) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
private final EventLoopGroup childGroup
private final ChannelHandler childHandler
private final java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[] childOptions
private final java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[] childAttrs
ServerBootstrapAcceptor(EventLoopGroup childGroup, ChannelHandler childHandler, java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[] childOptions, java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[] childAttrs)
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg)
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireChannelRead(Object)
to forward
to the next ChannelInboundHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.channelRead
in interface ChannelInboundHandler
channelRead
in class ChannelInboundHandlerAdapter
private static void forceClose(Channel child, java.lang.Throwable t)
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireExceptionCaught(Throwable)
to forward
to the next ChannelHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.exceptionCaught
in interface ChannelHandler
exceptionCaught
in interface ChannelInboundHandler
exceptionCaught
in class ChannelInboundHandlerAdapter
java.lang.Exception