There is no such example. But I think he is pretty straight forward. You must have a pool of different "channels" connected to remote hosts. Do something like this:
channel.write(msg).addListener() { public void operationComplete(ChannelFuture future) { if (!future.isSuccess) { ...
Hope this helps.
source share