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 |
private java.lang.Runnable |
enableAutoReadTask |
| Constructor and Description |
|---|
ServerBootstrapAcceptor(Channel channel,
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, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedprivate 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
private final java.lang.Runnable enableAutoReadTask
ServerBootstrapAcceptor(Channel channel, 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)
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelRead in interface ChannelInboundHandlerchannelRead in class ChannelInboundHandlerAdapterprivate static void forceClose(Channel child, java.lang.Throwable t)
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
ChannelInboundHandlerAdapterChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterjava.lang.Exception