Class AsyncQueryApiCallback<K,​V>

    • Method Detail

      • onFailure

        public void onFailure​(ApiException e,
                              int statusCode,
                              Map responseHeaders)
        This is called when the API call fails.
        Specified by:
        onFailure in interface ApiCallback<K>
        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

        public void onSuccess​(V1QueryResult result,
                              int statusCode,
                              Map<String,​List<String>> responseHeaders)
        This is called when the API call succeeded.
        Specified by:
        onSuccess in interface ApiCallback<K>
        Parameters:
        result - The result deserialized from response
        statusCode - Status code of the response
        responseHeaders - Headers of the response
      • onUploadProgress

        public void onUploadProgress​(long bytesWritten,
                                     long contentLength,
                                     boolean done)
        Description copied from interface: ApiCallback
        This is called when the API upload processing.
        Specified by:
        onUploadProgress in interface ApiCallback<K>
        Parameters:
        bytesWritten - bytes Written
        contentLength - content length of request body
        done - write end
      • onDownloadProgress

        public void onDownloadProgress​(long bytesRead,
                                       long contentLength,
                                       boolean done)
        Description copied from interface: ApiCallback
        This is called when the API downlond processing.
        Specified by:
        onDownloadProgress in interface ApiCallback<K>
        Parameters:
        bytesRead - bytes Read
        contentLength - content lenngth of the response
        done - Read end