This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.nio.channels.spi
class AbstractSelectionKey

java.lang.Object extended by java.nio.channels.SelectionKey extended by java.nio.channels.spi.AbstractSelectionKey

public abstract class AbstractSelectionKey
extends SelectionKey

Base implementation class for selection keys.

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


Field Summary
 
Fields inherited from class java.nio.channels.SelectionKey
OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE
 
Constructor Summary
protected

          Initializes a new instance of this class.
 
Method Summary
 void

          Cancels this key.
 boolean

          Tells whether or not this key is valid.
 
Methods inherited from class java.nio.channels.SelectionKey
attach, attachment, cancel, channel, interestOps, interestOps, isAcceptable, isConnectable, isReadable, isValid, isWritable, readyOps, selector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelectionKey

protected AbstractSelectionKey()
Initializes a new instance of this class.

Method Detail

cancel

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.

Overrides:
cancel in class SelectionKey

isValid

public final boolean isValid()
Overrides:
isValid in class SelectionKey


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.