Package io.netty.bootstrap
Class ServerBootstrap.ServerBootstrapAcceptor
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.bootstrap.ServerBootstrap.ServerBootstrapAcceptor
-
- All Implemented Interfaces:
ChannelHandler,ChannelInboundHandler
- Enclosing class:
- ServerBootstrap
private static class ServerBootstrap.ServerBootstrapAcceptor extends ChannelInboundHandlerAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[]childAttrsprivate EventLoopGroupchildGroupprivate ChannelHandlerchildHandlerprivate java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[]childOptionsprivate java.lang.RunnableenableAutoReadTask
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelRead(ChannelHandlerContext ctx, java.lang.Object msg)CallsChannelHandlerContext.fireChannelRead(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline.voidexceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause)CallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline.private static voidforceClose(Channel child, java.lang.Throwable t)-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
childGroup
private final EventLoopGroup childGroup
-
childHandler
private final ChannelHandler childHandler
-
childOptions
private final java.util.Map.Entry<ChannelOption<?>,java.lang.Object>[] childOptions
-
childAttrs
private final java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[] childAttrs
-
enableAutoReadTask
private final java.lang.Runnable enableAutoReadTask
-
-
Constructor Detail
-
ServerBootstrapAcceptor
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)
-
-
Method Detail
-
channelRead
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg)
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireChannelRead(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter
-
forceClose
private static void forceClose(Channel child, java.lang.Throwable t)
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
-