Interface ClientTransport.PingCallback

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Throwable cause)
      Invoked when a ping fails.
      void onSuccess​(long roundTripTimeNanos)
      Invoked when a ping is acknowledged.
    • Method Detail

      • onSuccess

        void onSuccess​(long roundTripTimeNanos)
        Invoked when a ping is acknowledged. The given argument is the round-trip time of the ping, in nanoseconds.
        Parameters:
        roundTripTimeNanos - the round-trip duration between the ping being sent and the acknowledgement received
      • onFailure

        void onFailure​(java.lang.Throwable cause)
        Invoked when a ping fails. The given argument is the cause of the failure.
        Parameters:
        cause - the cause of the ping failure