| 类和说明 |
|---|
| NettyClient
netty client 相关
1) timeout 设置 (connecttimeout,sotimeout, application timeout)
2) 线程池设置
3) 最大连接池设置
4) 最大消息队列设置 (netty channel内部: writeQueue)
5) 最大返回数据包设置
6) RPC 的测试的时候,需要非常关注 OOM的问题
|
| NettyResponseFuture
netty response
1) getValue() :
if (request is timeout or request is cancel or get exception)
throw exception;
else
return value;
2) getException() :
if (task is doing) :
return null
if (task is done and get exception):
return exception
|
| NettyServerChannelManage |
Copyright © 2017. All rights reserved.