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 |
pingAcknowledged(long roundTripTimeMicros)
Invoked when a ping is acknowledged.
|
void |
pingFailed(Throwable cause)
Invoked when a ping fails.
|
void pingAcknowledged(long roundTripTimeMicros)
roundTripTimeMicros
- the round-trip duration between the ping being sent and the
acknowledgement receivedvoid pingFailed(Throwable cause)
cause
- the cause of the ping failure