Package net.i2p.router.transport.ntcp
Class NTCPSendFinisher
java.lang.Object
net.i2p.router.transport.ntcp.NTCPSendFinisher
Previously, NTCP was using SimpleTimer with a delay of 0, which
was a real abuse.
Here we use the non-scheduled, lockless ThreadPoolExecutor with
a fixed pool size and an unbounded queue.
The old implementation was having problems with lock contention;
this should work a lot better - and not clog up the SimpleTimer queue.
- Author:
- zzz
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NTCPSendFinisher
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
add
-