* Streaming lib:

- Move ConEvent from SimpleTimer to SimpleScheduler
      - Move RetransmissionTimer (ResendPacketEvent)
        from SimpleTimer to new SimpleTimer2
      - Move ActivityTimer and Flusher from SimpleTimer to RetransmissionTimer
      - SimpleTimer2 allows specifying "fuzz" to reduce
        timer queue churn further
This commit is contained in:
zzz
2009-02-15 05:11:35 +00:00
parent 7b12f700dd
commit cc3165bf72
11 changed files with 322 additions and 44 deletions

View File

@ -6,7 +6,12 @@ import net.i2p.util.SimpleTimer;
*
*/
class FlushTimer extends SimpleTimer {
private static final FlushTimer _instance = new FlushTimer();
public static final SimpleTimer getInstance() { return _instance; }
protected FlushTimer() { super("TunnelFlushTimer"); }
/*
Streaming lib has been moved from SimpleTimer to SimpleTimer2, eliminating the congestion.
So there's not much left using SimpleTimer, and FlushTimer doesn't need its own 4 threads any more
(if it ever did?...)
*/
//private static final FlushTimer _instance = new FlushTimer();
//public static final SimpleTimer getInstance() { return _instance; }
//protected FlushTimer() { super("TunnelFlushTimer"); }
}