public class CompletionReadHandler<T> extends Object implements CompletionHandler<Integer,TcpAioSession<T>>
| Constructor and Description |
|---|
CompletionReadHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
completed(Integer result,
TcpAioSession<T> aioSession)
处理消息读回调事件
|
void |
failed(Throwable exc,
TcpAioSession<T> aioSession) |
void |
shutdown() |
public void completed(Integer result, TcpAioSession<T> aioSession)
completed in interface CompletionHandler<Integer,TcpAioSession<T>>result - 已读消息字节数aioSession - 当前触发读回调的会话public final void failed(Throwable exc, TcpAioSession<T> aioSession)
failed in interface CompletionHandler<Integer,TcpAioSession<T>>public void shutdown()
Copyright © 2021. All rights reserved.