Interface RequestCallback<T>

    • Method Detail

      • onResponse

        void onResponse​(Message<T> msg)
        Parameters:
        msg - response received.
      • invokeOnFailure

        default boolean invokeOnFailure()
        Returns true if the callback handles failure reporting - in which case the remove host will be asked to report failures to us in the event of a problem processing the request. TODO: this is an error prone method, and we should be handling failures everywhere so we should probably just start doing that, and remove this method
        Returns:
        true if the callback should be invoked on failure
      • trackLatencyForSnitch

        default boolean trackLatencyForSnitch()
        Returns:
        true if this callback is on the read path and its latency should be given as input to the dynamic snitch.