## 接口的使用
com.obs.services.model.TaskCallback

- 使用TaskCallback的程序包
  程序包 | 说明
  --- | ---
  com.obs.services.model |
  com.obs.services.model.fs |

- - ### com.obs.services.model中TaskCallback的使用

    返回TaskCallback的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `TaskCallback<PutObjectResult,PutObjectBasicRequest>` | PutObjectsRequest.`getCallback()` Obtain the callback object of an upload task.
    `TaskCallback<RestoreObjectResult,RestoreObjectRequest>` | RestoreObjectsRequest.`getCallback()` Obtain the callback object of a batch task.

    参数类型为TaskCallback的com.obs.services.model中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | PutObjectsRequest.`setCallback(TaskCallback<PutObjectResult,PutObjectBasicRequest> callback)` Set the callback object of an upload task.
    `void` | RestoreObjectsRequest.`setCallback(TaskCallback<RestoreObjectResult,RestoreObjectRequest> callback)` Set the callback object of a batch task.

  - ### com.obs.services.model.fs中TaskCallback的使用

    返回TaskCallback的com.obs.services.model.fs中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `TaskCallback<DeleteObjectResult,String>` | DropFolderRequest.`getCallback()` Obtain the callback object of a batch task.

    参数类型为TaskCallback的com.obs.services.model.fs中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | DropFolderRequest.`setCallback(TaskCallback<DeleteObjectResult,String> callback)` Set the callback object of a batch task.

Copyright © 2021. All rights reserved.