|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.transport.ntcp.NTCPSendFinisher
public class 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.
Constructor Summary | |
---|---|
NTCPSendFinisher(I2PAppContext context,
NTCPTransport transport)
|
Method Summary | |
---|---|
void |
add(OutNetMessage msg)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NTCPSendFinisher(I2PAppContext context, NTCPTransport transport)
Method Detail |
---|
public void start()
public void stop()
public void add(OutNetMessage msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |