public abstract class SimpleIoAction extends Object implements IoAction<ByteBuffer>
Constructor and Description |
---|
SimpleIoAction() |
Modifier and Type | Method and Description |
---|---|
void |
accept(AioSession session)
接收客户端连接(会话建立)事件处理
|
void |
failed(Throwable exc,
AioSession session)
数据读取失败的回调事件处理(消息读取失败)
|
public void accept(AioSession session)
IoAction
accept
in interface IoAction<ByteBuffer>
session
- 会话public void failed(Throwable exc, AioSession session)
IoAction
failed
in interface IoAction<ByteBuffer>
exc
- 异常session
- SessionCopyright © 2024. All rights reserved.