Let s look at the concrete implementation of our needed logic in listing 7. Rather than rewriting all your code to accomplish this, we recommend a phased migration: start with with OIO and move to NIO once you have revised your code. Thus it is important to make sure the reference count is adjusted after a ByteBuf is completely processed. Keep in mind, however, that a handler might implement both ChannelInboundHandler and ChannelOutboundHandler interfaces. Both Red Hat and Twitter use Netty, so it should come as no surprise that these two companies are the biggest contributors to Netty at the time of writing.
nest...