- ChannelHandlerAdapter
provides various event handler methods that you can override. For now, it is just enough to extend ChannelHandlerAdapter rather than to implement the handler interface by yourself. - ByteBuf
ByteBuf is a reference-counted object which has to be released explicitly via the release() method. Please keep in mind that it is the handler’s responsibility to release any reference-counted object passed to the handler. - NioEventLoopGroup
A multithreaded event loop that handles I/O operation. How many Threads are used and how they are mapped to the created Channels depends on the EventLoopGroup implementation and may be even configurable via a constructor. - ServerBootStrap
A helper class that sets up a server. - NioServerSocketChannel
Instantiate a new Channel to accept incoming connections. - ChannelInitializer
A special handler that is purposed to help a user configure a new Channel. It is most likely that you want to configure the ChannelPipeline of the new Channel by adding some handlers such as DiscardServerHandler to implement your network application. - Dealing with a Stream-based Transport
In a stream-based transport such as TCP/IP, received data is stored into a socket receive buffer. Unfortunately, the buffer of a stream-based transport is not a queue of packets but a queue of bytes. - ChannelInboundHandlerAdapter
- ByteToMessageDecoder
- ChannelOutboundHandlerAdapter
- MessageToByteEncoder
Netty -- Discard Server
最新推荐文章于 2022-07-20 16:19:32 发布