com.obs.services.model

## 接口 TaskCallback<K,V>

-     public interface TaskCallback<K,V>

  Task execution callback

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `onException(ObsException exception, V singleRequest)` Callback when an exception is thrown during task execution.
    `void` | `onSuccess(K result)` Callback when the task is executed successfully.

- - ### 方法详细资料

    - #### onSuccess

          void onSuccess(K result)

      Callback when the task is executed successfully.
      参数:
        `result` - Callback parameter. Generally, the return type of a specific operation is used.

    - #### onException

          void onException(ObsException exception,
                           V singleRequest)

      Callback when an exception is thrown during task execution.
      参数:
        `exception` - Exception information
        `singleRequest` - The request that causes an exception

Copyright © 2021. All rights reserved.