Package org.aoju.bus.socket.handler
Class ConcurrentReadHandler<T>
java.lang.Object
org.aoju.bus.socket.handler.CompletionReadHandler<T>
org.aoju.bus.socket.handler.ConcurrentReadHandler<T>
- All Implemented Interfaces:
CompletionHandler<Integer,TcpAioSession<T>>
读写事件回调处理类
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentReadHandler(Semaphore semaphore, ThreadPoolExecutor threadPoolExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleted(Integer result, TcpAioSession aioSession) 处理消息读回调事件Methods inherited from class org.aoju.bus.socket.handler.CompletionReadHandler
failed
-
Constructor Details
-
ConcurrentReadHandler
-
-
Method Details
-
completed
Description copied from class:CompletionReadHandler处理消息读回调事件- Specified by:
completedin interfaceCompletionHandler<Integer,TcpAioSession<T>> - Overrides:
completedin classCompletionReadHandler<T>- Parameters:
result- 已读消息字节数aioSession- 当前触发读回调的会话
-