org.gudy.azureus2.pluginsimpl.local.network
Class ConnectionManagerImpl.PluginRateLimiter
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.network.ConnectionManagerImpl.PluginRateLimiter
- All Implemented Interfaces:
- RateLimiter
- Enclosing class:
- ConnectionManagerImpl
public class ConnectionManagerImpl.PluginRateLimiter
- extends Object
- implements RateLimiter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getName
public 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)