com.echomine.net
Interface TransferRateThrottler

All Known Implementing Classes:
SimpleTransferRateThrottler

public interface TransferRateThrottler

The throttler interface gives the file transfer handlers a way to throttle the transfer rates. How the transfer rates are throttled is up to the implementor. This interfaces merely helps to separate the throttling algorithm from the file transfer procedure.


Method Summary
 void throttle(FileModel filemodel)
          Throttles the transfer rate based on the information provided by the file model.
 

Method Detail

throttle

void throttle(FileModel filemodel)
Throttles the transfer rate based on the information provided by the file model. Most likely you'll be using the calculated transfer rate and do some sort of sleep to slow down the transfer rate.



Copyright © 2001-2005 Echomine. All Rights Reserved.