edtFTPj/Free - Open-source FTP library for Java | Download


com.enterprisedt.net.ftp
Class BandwidthThrottler

java.lang.Object
  extended by com.enterprisedt.net.ftp.BandwidthThrottler

public class BandwidthThrottler
extends java.lang.Object

Helps throttle bandwidth for transfers

Version:
$Revision: 1.2 $
Author:
Bruce Blackshaw

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

BandwidthThrottler

public BandwidthThrottler(int thresholdBytesPerSec)
Method Detail

setThreshold

public void setThreshold(int thresholdBytesPerSec)

getThreshold

public int getThreshold()

throttleTransfer

public void throttleTransfer(long bytesSoFar)

reset

public void reset()


Copyright (c) 2001-2007 Enterprise Distributed Technologies Ltd. All Rights Reserved.