Interface ResponseHandler<T>

  • Type Parameters:
    T - The type of the response
    All Known Implementing Classes:
    CmdSystem.PersistentLogLines, ResponseQueue

    public interface ResponseHandler<T>
    Allows for asynchronous handling of responses. One can add a response handler to a Response object.
    • Method Detail

      • responseValue

        void responseValue​(Response<T> r,
                           T value)
        Invoked when a response arrives.
        Parameters:
        r - The response object which issues the event
        value - The value of the response.
      • responseException

        void responseException​(Response<T> r,
                               java.lang.Exception e)
        Invoked when a command resulted in an exception.
        Parameters:
        e - The exception.
        r - The response object which issues the event