Interface Handler<T>


  • public interface Handler<T>
    Interface to receive result of an async request
    • Field Detail

      • EMPTY_HANDLER

        static final Handler<java.lang.Object> EMPTY_HANDLER
    • Method Detail

      • onSuccess

        void onSuccess​(T obtained)
        Will be invoked if the request finished successfully
        Parameters:
        obtained - data to return
      • onFailure

        void onFailure​(Error error)
        Callback that is called in case any error happens