|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.BandwidthThrottler
public class BandwidthThrottler
Helps throttle bandwidth for transfers
| Constructor Summary | |
|---|---|
BandwidthThrottler(int thresholdBytesPerSec)
|
|
| Method Summary | |
|---|---|
int |
getThreshold()
|
void |
reset()
|
void |
setThreshold(int thresholdBytesPerSec)
|
void |
throttleTransfer(long bytesSoFar)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BandwidthThrottler(int thresholdBytesPerSec)
| Method Detail |
|---|
public void setThreshold(int thresholdBytesPerSec)
public int getThreshold()
public void throttleTransfer(long bytesSoFar)
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||