Interface ServiceCallback<T>

  • Type Parameters:
    T - the type of the response

    public interface ServiceCallback<T>
    The callback used for client side asynchronous operations.
    • Method Detail

      • failure

        void failure​(Throwable t)
        Override this method to handle REST call failures.
        Parameters:
        t - the exception thrown from the pipeline.
      • success

        void success​(T result)
        Override this method to handle successful REST call results.
        Parameters:
        result - the result object.