Java.NIO on Write confusion

I have a confusion on the onWrite method of Java NIO, when the selector is ready to write should I: 1: Register/Change a OP_Write 2: If Write returns 0 what should I do? 3: After writing should I …

AIO in Netty 4.0.0.CR9

I am currently Porting my Netty Server to Version 4 (4.0.0.CR9). While everything works so far I would also like to try out the performance benefits of the new java7 nio2 implementation. But it …