开发者

How to count java nio connection number

开发者 https://www.devze.com 2022-12-22 01:01 出处:网络
Java nio establishes lot开发者_StackOverflow社区s of connections, How to do a count?Add 1 to a variable every time you accept a connection, and decrement it every time you close one.

Java nio establishes lot开发者_StackOverflow社区s of connections, How to do a count?


Add 1 to a variable every time you accept a connection, and decrement it every time you close one.

Is this a trick question? ;-)

0

精彩评论

暂无评论...
验证码 换一张
取 消