public static interface ClientTransport.PingCallback
ClientTransport.ping(io.grpc.internal.ClientTransport.PingCallback, java.util.concurrent.Executor) is received. Exactly one
of the two methods should be called per ClientTransport.ping(io.grpc.internal.ClientTransport.PingCallback, java.util.concurrent.Executor).| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Throwable cause)
Invoked when a ping fails.
|
void |
onSuccess(long roundTripTimeNanos)
Invoked when a ping is acknowledged.
|
void onSuccess(long roundTripTimeNanos)
roundTripTimeNanos - the round-trip duration between the ping being sent and the
acknowledgement receivedvoid onFailure(Throwable cause)
cause - the cause of the ping failure