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 Detail

      • 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