XMPP协议笔记

来源:互联网 发布:十大网络剧排行榜2017 编辑:程序博客网 时间:2024/06/14 07:27

今天开始看XMPP协议。计划两天看完。顺手记点东西。

AbstractComponent类有两个构造方法:

AbstractComponent() 
          Instantiates a new AbstractComponent with a maximum thread pool size of 17 and a maximum queue size of 1000.

AbstractComponent(int maxThreadpoolSize, int maxQueueSize, boolean enforceIQResult) 
          Instantiates a new AbstractComponent.

默认的话只有17个线程,外加1000个队列。如果并发高,请用第二个构造方法。



0 0