Interface ApiCallback<T>

Type Parameters:
T - The return type

@Deprecated
public interface ApiCallback<T>
Deprecated.
Use the equivalent in v2 algod client
Callback for asynchronous API call.
  • Method Summary

    Modifier and Type Method Description
    void onDownloadProgress​(long bytesRead, long contentLength, boolean done)
    Deprecated.
    This is called when the API downlond processing.
    void onFailure​(ApiException e, int statusCode, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)
    Deprecated.
    This is called when the API call fails.
    void onSuccess​(T result, int statusCode, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)
    Deprecated.
    This is called when the API call succeeded.
    void onUploadProgress​(long bytesWritten, long contentLength, boolean done)
    Deprecated.
    This is called when the API upload processing.
  • Method Details

    • onFailure

      void onFailure​(ApiException e, int statusCode, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)
      Deprecated.
      This is called when the API call fails.
      Parameters:
      e - The exception causing the failure
      statusCode - Status code of the response if available, otherwise it would be 0
      responseHeaders - Headers of the response if available, otherwise it would be null
    • onSuccess

      void onSuccess​(T result, int statusCode, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)
      Deprecated.
      This is called when the API call succeeded.
      Parameters:
      result - The result deserialized from response
      statusCode - Status code of the response
      responseHeaders - Headers of the response
    • onUploadProgress

      void onUploadProgress​(long bytesWritten, long contentLength, boolean done)
      Deprecated.
      This is called when the API upload processing.
      Parameters:
      bytesWritten - bytes Written
      contentLength - content length of request body
      done - write end
    • onDownloadProgress

      void onDownloadProgress​(long bytesRead, long contentLength, boolean done)
      Deprecated.
      This is called when the API downlond processing.
      Parameters:
      bytesRead - bytes Read
      contentLength - content lenngth of the response
      done - Read end