public abstract class AbstractSelectionKey extends SelectionKey
This class tracks the validity of the key and implements cancellation.
If this key has not yet been cancelled then it is added to its selector's cancelled-key set while synchronized on that set.
cancel
SelectionKey