|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.nio.channels.SelectionKey
java.nio.channels.spi.AbstractSelectionKey
public abstract class AbstractSelectionKey
选择键的基本实现类。
此类跟踪键的有效性并实现取消。
| 字段摘要 |
|---|
| 从类 java.nio.channels.SelectionKey 继承的字段 |
|---|
OP_ACCEPT, OP_CONNECT, OP_READ, OP_WRITE |
| 构造方法摘要 | |
|---|---|
protected |
AbstractSelectionKey()
初始化此类的一个新实例。 |
| 方法摘要 | |
|---|---|
void |
cancel()
取消此键。 |
boolean |
isValid()
告知此键是否有效。 |
| 从类 java.nio.channels.SelectionKey 继承的方法 |
|---|
attach, attachment, channel, interestOps, interestOps, isAcceptable, isConnectable, isReadable, isWritable, readyOps, selector |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
protected AbstractSelectionKey()
| 方法详细信息 |
|---|
public final boolean isValid()
SelectionKey 复制的描述键在创建时是有效的,并在被取消、其通道已关闭或者其选择器已关闭之前保持有效。
SelectionKey 中的 isValidpublic final void cancel()
如果尚未取消此键,则将该键添加到其选择器的已取消键集中,同时在该键集上实现同步。
SelectionKey 中的 cancel
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。