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