Chapter 6. ChannelHandler and ChannelPipeline
This chapter covers
- The ChannelHandler and ChannelPipeline APIs
- Detecting resource leaks
- Exception handling
In the previous chapter you studied ByteBuf, Netty’s data container. As we explore Netty’s dataflow and processing components in this chapter, we’ll build on what you’ve learned and you’ll begin to see important elements of the framework coming together.
You already know that ChannelHandlers can be chained together in a ChannelPipeline to organize processing logic. We’ll examine a variety of use cases involving these classes and an important relation, ChannelHandlerContext.
Understanding the interactions among all of these components is essential to building modular, reusable implementations ...