net.i2p.router.transport
Class FIFOBandwidthRefiller

java.lang.Object
  extended bynet.i2p.router.transport.FIFOBandwidthRefiller
All Implemented Interfaces:
java.lang.Runnable

class FIFOBandwidthRefiller
extends java.lang.Object
implements java.lang.Runnable


Field Summary
static int MIN_INBOUND_BANDWIDTH
          For now, until there is some tuning and safe throttling, we set the floor at 6KBps inbound
static int MIN_INBOUND_BANDWIDTH_PEAK
          For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst
static int MIN_OUTBOUND_BANDWIDTH
          For now, until there is some tuning and safe throttling, we set the floor at 6KBps outbound
static int MIN_OUTBOUND_BANDWIDTH_PEAK
          For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst
static long MIN_REPLENISH_FREQUENCY
          Updating the bandwidth more than once a second is silly.
static java.lang.String PROP_INBOUND_BANDWIDTH
           
static java.lang.String PROP_INBOUND_BANDWIDTH_PEAK
           
static java.lang.String PROP_OUTBOUND_BANDWIDTH
           
static java.lang.String PROP_OUTBOUND_BANDWIDTH_PEAK
           
 
Constructor Summary
FIFOBandwidthRefiller(I2PAppContext context, FIFOBandwidthLimiter limiter)
           
 
Method Summary
 void reinitialize()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_INBOUND_BANDWIDTH

public static final java.lang.String PROP_INBOUND_BANDWIDTH
See Also:
Constant Field Values

PROP_OUTBOUND_BANDWIDTH

public static final java.lang.String PROP_OUTBOUND_BANDWIDTH
See Also:
Constant Field Values

PROP_INBOUND_BANDWIDTH_PEAK

public static final java.lang.String PROP_INBOUND_BANDWIDTH_PEAK
See Also:
Constant Field Values

PROP_OUTBOUND_BANDWIDTH_PEAK

public static final java.lang.String PROP_OUTBOUND_BANDWIDTH_PEAK
See Also:
Constant Field Values

MIN_INBOUND_BANDWIDTH

public static final int MIN_INBOUND_BANDWIDTH
For now, until there is some tuning and safe throttling, we set the floor at 6KBps inbound

See Also:
Constant Field Values

MIN_OUTBOUND_BANDWIDTH

public static final int MIN_OUTBOUND_BANDWIDTH
For now, until there is some tuning and safe throttling, we set the floor at 6KBps outbound

See Also:
Constant Field Values

MIN_INBOUND_BANDWIDTH_PEAK

public static final int MIN_INBOUND_BANDWIDTH_PEAK
For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst

See Also:
Constant Field Values

MIN_OUTBOUND_BANDWIDTH_PEAK

public static final int MIN_OUTBOUND_BANDWIDTH_PEAK
For now, until there is some tuning and safe throttling, we set the floor at a 10 second burst

See Also:
Constant Field Values

MIN_REPLENISH_FREQUENCY

public static final long MIN_REPLENISH_FREQUENCY
Updating the bandwidth more than once a second is silly. once every 2 or 5 seconds is less so.

See Also:
Constant Field Values
Constructor Detail

FIFOBandwidthRefiller

public FIFOBandwidthRefiller(I2PAppContext context,
                             FIFOBandwidthLimiter limiter)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

reinitialize

public void reinitialize()