org.gudy.azureus2.pluginsimpl.local.utils
Class UtilitiesImpl.PluginLimitedRateGroup

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.utils.UtilitiesImpl.PluginLimitedRateGroup
All Implemented Interfaces:
LimitedRateGroup
Enclosing class:
UtilitiesImpl

public static class UtilitiesImpl.PluginLimitedRateGroup
extends Object
implements LimitedRateGroup


Method Summary
 void addListener(UtilitiesImpl.PluginLimitedRateGroupListener listener)
           
 String getName()
           
 int getRateLimitBytesPerSecond()
          Get the current rate limit.
 boolean isDisableDisable()
           
 void removeListener(UtilitiesImpl.PluginLimitedRateGroupListener listener)
           
 void updateBytesUsed(int used)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDisableDisable

public boolean isDisableDisable()

addListener

public void addListener(UtilitiesImpl.PluginLimitedRateGroupListener listener)

removeListener

public void removeListener(UtilitiesImpl.PluginLimitedRateGroupListener listener)

getName

public String getName()
Specified by:
getName in interface LimitedRateGroup

getRateLimitBytesPerSecond

public int getRateLimitBytesPerSecond()
Description copied from interface: LimitedRateGroup
Get the current rate limit.

Specified by:
getRateLimitBytesPerSecond in interface LimitedRateGroup
Returns:
rate in bytes per second, 0 for unlimited, -1 for disabled

updateBytesUsed

public void updateBytesUsed(int used)
Specified by:
updateBytesUsed in interface LimitedRateGroup