SESSION
- 会话类型public interface INioEventProcessor<SESSION extends INioSession> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
registerEvent(SelectableChannel channel,
int ops,
SESSION session)
注册事件
|
Selector |
selector()
获取选择器
|
void |
start()
启动
|
void |
unregisterEvent(SESSION session)
解注册事件
|
close
void registerEvent(SelectableChannel channel, int ops, SESSION session) throws IOException
channel
- 多路复用频道ops
- 操作标识session
- 会话对象IOException
- 可能产生的IO异常void unregisterEvent(SESSION session)
session
- 会话对象Selector selector()
void start()
Copyright © 2022. All rights reserved.