Interface AsyncHandler<REQUEST,​RESPONSE>

    • Method Detail

      • onSuccess

        void onSuccess​(REQUEST request,
                       RESPONSE response)
        Called if the request was successfully completed.
        Parameters:
        request - The request that was made.
        response - The response that was received.
      • onError

        void onError​(REQUEST request,
                     Throwable error)
        Called if the request could not be completed successfully.
        Parameters:
        request - The request that was made.
        error - The error that was received.