Package org.eclipse.ecf.filetransfer
Interface IFileTransferRateControl
- 
 public interface IFileTransferRateControlAdapter for setting rate control on IFileTransferInfo instances that expose expose this adapter interface viaIAdaptable.getAdapter(Class adapter). To use this interface, clients should do the following:IFileTransfer fileTransfer; IFileTransferRateControl rateController = (IFileTransferRateControl) fileTransfer.getAdapter(IFileTransferRateControl.class); if (rateController !=null) { ... use it } else { ... does not support rate control }
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetMaxDownloadSpeed(long maxDownloadSpeed)Set maximum download speed in bytes/second.voidsetMaxUploadSpeed(long maxUploadSpeed)Set maximum upload speed in bytes/second.
 
- 
- 
- 
Method Detail- 
setMaxDownloadSpeedvoid setMaxDownloadSpeed(long maxDownloadSpeed) Set maximum download speed in bytes/second. Specifying a maximum download speed of 0 indicates that any exiting rate cap should be removed, and the transfer should proceed as fast as possible a- Parameters:
- maxDownloadSpeed- in bytes/second
 
 - 
setMaxUploadSpeedvoid setMaxUploadSpeed(long maxUploadSpeed) Set maximum upload speed in bytes/second. Specifying a maximum upload speed of 0 indicates that any exiting rate cap should be removed, and the transfer should proceed as fast as possible- Parameters:
- maxUploadSpeed- in bytes/second
 
 
- 
 
-