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
-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.Map.Entry<AttributeKey<?>, java.lang.Object>[]private final EventLoopGroupprivate final ChannelHandlerprivate final java.util.Map.Entry<ChannelOption<?>, java.lang.Object>[]private final java.lang.Runnableprivate final java.util.Collection<ChannelInitializerExtension> -
Constructor Summary
ConstructorsConstructorDescriptionServerBootstrapAcceptor(Channel channel, EventLoopGroup childGroup, ChannelHandler childHandler, java.util.Map.Entry<ChannelOption<?>, java.lang.Object>[] childOptions, java.util.Map.Entry<AttributeKey<?>, java.lang.Object>[] childAttrs, java.util.Collection<ChannelInitializerExtension> extensions) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelRead(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 ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
childGroup
-
childHandler
-
childOptions
-
childAttrs
-
enableAutoReadTask
private final java.lang.Runnable enableAutoReadTask -
extensions
-
-
Constructor Details
-
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, java.util.Collection<ChannelInitializerExtension> extensions)
-
-
Method Details
-
channelRead
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
-
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
-