Netty 源码阅读计划
项目各模块主要功能说明
io.netty.all
io.netty.buffer
字节缓冲区io.netty.codec
特殊的Handler,负责处理半包/粘包,编解码(字节<->协议映射)等io.netty.codec.dns
io.netty.codec.haproxy
io.netty.codec.http
io.netty.codec.http2
io.netty.codec.memcache
io.netty.codec.mqtt
io.netty.codec.redis
io.netty.codec.smtp
io.netty.codec.socks
io.netty.codec.stomp
io.netty.codec.xml
io.netty.common
通用模块,提供特殊线程池,工具类等io.netty.handler
消息处理器,负责在pipeline
中加工消息io.netty.handler.proxy
io.netty.resolver
解析器,负责解析IP/HOSTio.netty.resolver.dns
io.netty.transport
传输层,Netty的核心组件io.netty.transport.epoll
(native
omitted - reserved keyword in Java)io.netty.transport.kqueue
(native
omitted - reserved keyword in Java)io.netty.transport.unix.common
(native
omitted - reserved keyword in Java)io.netty.transport.rxtx
io.netty.transport.sctp
io.netty.transport.udt
主要要阅读的模块基本上涵盖和Netty-all中的内容,其中部分模块名称略有不同,读者可以自己对应下。
- io.netty.buffer
- AbstractByteBuf
- AbstractByteBufAllocator
- AbstractReferenceCountedByteBuf
- ByteBuf
- ByteBufAllocator
- PoolArena
- PoolChunk
- PoolChunkList
- PooledByteBuf
- PooledByteBufAllocator
- PoolSubpage
- PoolThreadCache
- UnpooledDirectByteBuf
- UnpooledHeapByteBuf
- io.netty.util
- concurrent
- AbstractEventExecutor
- AbstractEventExecutorGroup
- AbstractFuture
- AbstractScheduledEventExecutor
- DefaultEventExecutor
- DefaultEventExecutorGroup
- DefaultPromise
- EventExecutor
- EventExecutorGroup
- Future
- MultithreadEventExecutorGroup
- Promise
- SingleThreadEventExecutor
- ThreadPerTaskExecutor
- Recycler
- ReferenceCounted
- io.netty
- bootstrap
- AbstractBootstap
- AbstractBootstrapConfig
- Bootstrap
- BootstrapConfig
- ServerBootstrap
- ServerBootstrapConfig
- channel
- nio
- AbstractNioByteChannel
- AbstractNioChannel
- AbstractNioMessageChannel
- NioEventLoop
- NioEventLoopGroup
- socket
- nio
- NioSocketChannel
- NioSocketServerChannel
- DuplexChannel
- SocketChannel
- AbstractChannel
- AbstractChannelHandlerContext
- AbstractServerChannel
- Channel
- ChannelFuture
- ChannelHandlerContext
- ChannelInboundInvoker
- ChannelOutboundInvoker
- ChannelPipeline
- ChannelPromise
- DefaultChannelHandlerContext
- DefaultChannelPipeline
- DefaultChannelPromise
- EventLoop
- EventLoopGroup
- MultithreadEventLoopGroup
- ReflectiveChannelFactory
- SingleThreadEventLoop