Interface ResponseHandler<T>

All Known Implementing Classes:
ResponseHandlerWithHeaders

public interface ResponseHandler<T>
Interface for handling async method callbacks
  • Method Summary

    Modifier and Type Method Description
    void onError​(Exception ex)
    Called when the method errored.
    void onSuccess​(T value)
    Called when the method succeeds.
  • Method Details

    • onError

      void onError​(Exception ex)
      Called when the method errored. This is NOT called when onSuccess errors.
    • onSuccess

      void onSuccess​(T value)
      Called when the method succeeds.