Save This Page
Home » openjdk-7 » java » nio » channels » spi » [javadoc | source]
java.nio.channels.spi
abstract public class: AbstractSelectionKey [javadoc | source]
java.lang.Object
   java.nio.channels.SelectionKey
      java.nio.channels.spi.AbstractSelectionKey
Base implementation class for selection keys.

This class tracks the validity of the key and implements cancellation.

Fields inherited from java.nio.channels.SelectionKey:
OP_READ,  OP_WRITE,  OP_CONNECT,  OP_ACCEPT
Constructor:
 protected AbstractSelectionKey() 
Method from java.nio.channels.spi.AbstractSelectionKey Summary:
cancel,   invalidate,   isValid
Methods from java.nio.channels.SelectionKey:
attach,   attachment,   cancel,   channel,   interestOps,   interestOps,   isAcceptable,   isConnectable,   isReadable,   isValid,   isWritable,   readyOps,   selector
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.nio.channels.spi.AbstractSelectionKey Detail:
 public final  void cancel() 
    Cancels this key.

    If this key has not yet been cancelled then it is added to its selector's cancelled-key set while synchronized on that set.

  void invalidate() 
 public final boolean isValid()