Interface AsyncHttpPaginatedResponse.Callback

Enclosing class:
AsyncHttpPaginatedResponse

public static interface AsyncHttpPaginatedResponse.Callback
An interface allowing a client to be notified of the outcome of an asynchronous operation.
  • Method Summary

    Modifier and Type Method Description
    void onError​(ErrorInfo reason)
    Called when the associated operation completes with an error.
    void onResponse​(AsyncHttpPaginatedResponse response)
    Called when the associated request completes with an Http response,
  • Method Details

    • onResponse

      void onResponse​(AsyncHttpPaginatedResponse response)
      Called when the associated request completes with an Http response,
    • onError

      void onError​(ErrorInfo reason)
      Called when the associated operation completes with an error.
      Parameters:
      reason - information about the error.