|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alliance.core.comm.throttling.BandwidthThrottle
public class BandwidthThrottle
based on code from limewire
| Constructor Summary | |
|---|---|
BandwidthThrottle(CoreSubsystem core,
float bytesPerSecond)
|
|
| Method Summary | |
|---|---|
void |
bytesProcessed(int bytes)
|
int |
request(Connection c,
int desired)
|
void |
setRate(float bytesPerSecond)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BandwidthThrottle(CoreSubsystem core,
float bytesPerSecond)
| Method Detail |
|---|
public void setRate(float bytesPerSecond)
public int request(Connection c,
int desired)
public void bytesProcessed(int bytes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||