public interface IFileTransferRateControl
IAdaptable.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
}
| Modifier and Type | Method and Description |
|---|---|
void |
setMaxDownloadSpeed(long maxDownloadSpeed)
Set maximum download speed in bytes/second.
|
void |
setMaxUploadSpeed(long maxUploadSpeed)
Set maximum upload speed in bytes/second.
|
void setMaxDownloadSpeed(long maxDownloadSpeed)
maxDownloadSpeed - in bytes/secondvoid setMaxUploadSpeed(long maxUploadSpeed)
maxUploadSpeed - in bytes/secondCopyright © 2004–2020 Eclipse Foundation. All rights reserved.