|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileTransferRateControl
Adapter for setting rate control on IFileTransferInfo instances that expose
expose this adapter interface via
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 }
Method Summary | |
---|---|
void |
setMaxDownloadSpeed(long maxDownloadSpeed)
Set maximum download speed in bytes/second. |
void |
setMaxUploadSpeed(long maxUploadSpeed)
Set maximum upload speed in bytes/second. |
Method Detail |
---|
void setMaxDownloadSpeed(long maxDownloadSpeed)
maxDownloadSpeed
- in bytes/secondvoid setMaxUploadSpeed(long maxUploadSpeed)
maxUploadSpeed
- in bytes/second
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |