org.gudy.azureus2.plugins.network
Interface RateLimiter

All Known Implementing Classes:
ConnectionManagerImpl.PluginRateLimiter

public interface RateLimiter


Method Summary
 java.lang.String getName()
           
 int getRateLimitBytesPerSecond()
          Get rate limit.
 long getRateLimitTotalByteCount()
           
 void setRateLimitBytesPerSecond(int bytes_per_second)
           
 

Method Detail

getName

java.lang.String getName()

getRateLimitBytesPerSecond

int getRateLimitBytesPerSecond()
Get rate limit. 0 -> unlimited, -1 -> disabled

Returns:

setRateLimitBytesPerSecond

void setRateLimitBytesPerSecond(int bytes_per_second)

getRateLimitTotalByteCount

long getRateLimitTotalByteCount()