Package | Description |
---|---|
cn.hutool.socket.aio |
AIO相关封装
|
Modifier and Type | Class and Description |
---|---|
class |
SimpleIoAction
简易IO信息处理类
简单实现了accept和failed事件 |
Modifier and Type | Field and Description |
---|---|
protected IoAction<ByteBuffer> |
AioServer.ioAction |
Modifier and Type | Method and Description |
---|---|
IoAction<ByteBuffer> |
AioSession.getIoAction()
获取消息处理器
|
IoAction<ByteBuffer> |
AioServer.getIoAction()
获取IO处理器
|
IoAction<ByteBuffer> |
AioClient.getIoAction()
获取IO处理器
|
Modifier and Type | Method and Description |
---|---|
AioServer |
AioServer.setIoAction(IoAction<ByteBuffer> ioAction)
设置IO处理器,单例存在
|
Constructor and Description |
---|
AioClient(AsynchronousSocketChannel channel,
IoAction<ByteBuffer> ioAction,
SocketConfig config)
构造
|
AioClient(InetSocketAddress address,
IoAction<ByteBuffer> ioAction)
构造
|
AioClient(InetSocketAddress address,
IoAction<ByteBuffer> ioAction,
SocketConfig config)
构造
|
AioSession(AsynchronousSocketChannel channel,
IoAction<ByteBuffer> ioAction,
SocketConfig config)
构造
|
Copyright © 2024. All rights reserved.