PoolingFilter asyncRead = new PoolingFilter(executor, PoolingFilter.READ_EVENTS,
"AsynchronousReadFilter");
PoolingFilter asyncWrite = new PoolingFilter(executor, PoolingFilter.WRITE_EVENTS,
"AsynchronousWriteFilter");
chain.addFirst("AsynchronousReadFilter", new ReferenceCountingIoFilter(asyncRead));
chain.addLast("AsynchronousWriteFilter", new ReferenceCountingIoFilter(asyncWrite));
}