org.gudy.azureus2.pluginsimpl.local.network
Class ConnectionManagerImpl.PluginRateLimiter

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.network.ConnectionManagerImpl.PluginRateLimiter
All Implemented Interfaces:
RateLimiter
Enclosing class:
ConnectionManagerImpl

public static class ConnectionManagerImpl.PluginRateLimiter
extends java.lang.Object
implements RateLimiter


Method Summary
 java.lang.String getName()
           
 int getRateLimitBytesPerSecond()
          Get rate limit.
 long getRateLimitTotalByteCount()
           
 void setRateLimitBytesPerSecond(int bytes_per_second)
           
 void updateBytesUsed(int used)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface RateLimiter

getRateLimitBytesPerSecond

public int getRateLimitBytesPerSecond()
Description copied from interface: RateLimiter
Get rate limit. 0 -> unlimited, -1 -> disabled

Specified by:
getRateLimitBytesPerSecond in interface RateLimiter
Returns:

setRateLimitBytesPerSecond

public void setRateLimitBytesPerSecond(int bytes_per_second)
Specified by:
setRateLimitBytesPerSecond in interface RateLimiter

getRateLimitTotalByteCount

public long getRateLimitTotalByteCount()
Specified by:
getRateLimitTotalByteCount in interface RateLimiter

updateBytesUsed

public void updateBytesUsed(int used)