public class NioUtil extends Object
Modifier and Type | Field and Description |
---|---|
static Field |
publicSelectedKeysField |
static Field |
selectedKeysField |
Constructor and Description |
---|
NioUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addOps(SelectionKey key,
int ops)
为 SelectionKey 增加一个操作
|
static void |
removeOps(SelectionKey key,
int ops)
为 SelectionKey 移除一个操作
|
public static Field selectedKeysField
public static Field publicSelectedKeysField
public static void addOps(SelectionKey key, int ops)
key
- SelectionKey 对象ops
- 操作public static void removeOps(SelectionKey key, int ops)
key
- SelectionKey 对象ops
- 操作Copyright © 2020 Voovan. All rights reserved.