Code example for SelectionKey

Methods: interestOps, isReadable, isValid, isWritable, readyOps