Interface AsyncCallback<T>

Type Parameters:
T - the type of the return value

@PublicApi public interface AsyncCallback<T>
Callback interface for asynchronous service calls
Since:
5.6
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when asynchronous call is failed
    void
    onSuccess(T result)
    Called when asynchronous call is completed successfully
  • Method Details

    • onSuccess

      void onSuccess(T result)
      Called when asynchronous call is completed successfully
      Parameters:
      result - the result of call
    • onFailure

      void onFailure(ServiceException caught)
      Called when asynchronous call is failed
      Parameters:
      caught - the failure