接口 RespCallback<T>

类型参数:
T - for the response data structures in package client/response

public interface RespCallback<T>
Callback function to executed when client get response from the node.
  • 方法概要

    修饰符和类型 方法 说明
    void onError​(Response errorResponse)
    onError is called when get error
    void onResponse​(T t)
    onResponse is the call back function
  • 方法详细资料

    • onResponse

      void onResponse​(T t)
      onResponse is the call back function
      参数:
      t - the response data structure
    • onError

      void onError​(Response errorResponse)
      onError is called when get error
      参数:
      errorResponse -