接口 TaskCallback<K,V>

所有已知实现类:
LazyTaksCallback

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