Code example for SelectionKey

Methods: interestOps, isValid