Interface ClientTransport.PingCallback

Enclosing interface:
ClientTransport

public static interface ClientTransport.PingCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a ping fails.
    void
    onSuccess(long roundTripTimeNanos)
    Invoked when a ping is acknowledged.
  • Method Details

    • 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(Throwable cause)
      Invoked when a ping fails. The given argument is the cause of the failure.
      Parameters:
      cause - the cause of the ping failure