com.echomine.net
Interface ConnectionThrottler

All Known Implementing Classes:
SimpleConnectionThrottler

public interface ConnectionThrottler

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


Method Summary
 void throttle(ConnectionModel cmodel)
          Throttles the data transfer rate based on the information provided by the connection model.
 

Method Detail

throttle

void throttle(ConnectionModel cmodel)
Throttles the data transfer rate based on the information provided by the connection 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.