Code example for SelectionKey

Methods: attachcancel