接口 TransferListener
-
public interface TransferListener传输监听接口
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidonError(java.lang.String id, com.tencent.cos.xml.exception.CosXmlClientException clientException, com.tencent.cos.xml.exception.CosXmlServiceException serviceException)Called when an exception happens.voidonProgressChanged(java.lang.String id, long bytesCurrent, long bytesTotal)Called when more bytes are transferred.voidonStateChanged(java.lang.String id, TransferState state)Called when the state of the transfer is changed.
-
-
-
方法详细资料
-
onStateChanged
void onStateChanged(java.lang.String id, TransferState state)Called when the state of the transfer is changed.- 参数:
id- The id of the transfer record.state- The new state of the transfer.
-
onProgressChanged
void onProgressChanged(java.lang.String id, long bytesCurrent, long bytesTotal)Called when more bytes are transferred.- 参数:
id- The id of the transfer record.bytesCurrent- Bytes transferred currently.bytesTotal- The total bytes to be transferred.
-
onError
void onError(java.lang.String id, com.tencent.cos.xml.exception.CosXmlClientException clientException, com.tencent.cos.xml.exception.CosXmlServiceException serviceException)Called when an exception happens.- 参数:
id- The id of the transfer record.clientException- An client exception object.serviceException- An Service exception object.
-
-