Class Receiver<V>

    • Constructor Detail

      • Receiver

        public Receiver()
    • Method Detail

      • onFailure

        public void onFailure​(ServerFailure error)
        Receives general failure notifications. The default implementation looks at ServerFailure.isFatal(), and throws a runtime exception with the failure object's error message if it is true.
        Parameters:
        error - a ServerFailure instance
      • onSuccess

        public abstract void onSuccess​(V response)
        Called when a Request has been successfully executed on the server.
        Parameters:
        response - a response of type V