Code example for SelectionKey

Methods: attach