public class ConcurrentReadHandler<T> extends CompletionReadHandler<T>
| Constructor and Description |
|---|
ConcurrentReadHandler(Semaphore semaphore) |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(Integer result,
TcpAioSession<T> aioSession)
处理消息读回调事件
|
void |
shutdown()
停止内部线程
|
failedpublic ConcurrentReadHandler(Semaphore semaphore)
public void completed(Integer result, TcpAioSession<T> aioSession)
CompletionReadHandlercompleted in interface CompletionHandler<Integer,TcpAioSession<T>>completed in class CompletionReadHandler<T>result - 已读消息字节数aioSession - 当前触发读回调的会话public void shutdown()
shutdown in class CompletionReadHandler<T>Copyright © 2021. All rights reserved.