forked from I2P_Developers/i2p.i2p
remove FlushTimer
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
package net.i2p.router.tunnel;
|
||||
|
||||
import net.i2p.util.SimpleTimer;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
class FlushTimer extends SimpleTimer {
|
||||
/*
|
||||
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"); }
|
||||
}
|
@ -121,7 +121,7 @@ class PumpedTunnelGateway extends TunnelGateway {
|
||||
}
|
||||
|
||||
if (delayedFlush) {
|
||||
FlushTimer.getInstance().addEvent(_delayedFlush, delayAmount);
|
||||
_context.simpleTimer().addEvent(_delayedFlush, delayAmount);
|
||||
}
|
||||
_context.statManager().addRateData("tunnel.lockedGatewayAdd", afterAdded-beforeLock, remaining);
|
||||
long complete = System.currentTimeMillis();
|
||||
|
@ -124,7 +124,7 @@ class TunnelGateway {
|
||||
}
|
||||
|
||||
if (delayedFlush) {
|
||||
FlushTimer.getInstance().addEvent(_delayedFlush, delayAmount);
|
||||
_context.simpleTimer().addEvent(_delayedFlush, delayAmount);
|
||||
}
|
||||
_context.statManager().addRateData("tunnel.lockedGatewayAdd", afterAdded-beforeLock, remaining);
|
||||
if (_log.shouldLog(Log.DEBUG)) {
|
||||
@ -304,7 +304,7 @@ class TunnelGateway {
|
||||
}
|
||||
|
||||
if (wantRequeue)
|
||||
FlushTimer.getInstance().addEvent(_delayedFlush, delayAmount);
|
||||
_context.simpleTimer().addEvent(_delayedFlush, delayAmount);
|
||||
else
|
||||
_lastFlush = _context.clock().now();
|
||||
|
||||
|
Reference in New Issue
Block a user