public void registerRead ( SelectableChannel channel , ISelectHandler callback ) throws ClosedChannelException { assert channel . keyFor ( selector ) == null || ( channel . keyFor ( selector ) . interestOps ( ) & SelectionKey . OP_CONNECT ) == 0 ; addInterest ( channel , SelectionKey . OP_READ , callback ) ; }
Followings are the register unregister isRegister for different operations for the selector and channel