MCPcopy Create free account
hub / github.com/grpc/grpc-java / Http2Ping

Method Http2Ping

core/src/main/java/io/grpc/internal/Http2Ping.java:82–85  ·  view source on GitHub ↗

Creates a new ping operation. The caller is responsible for sending a ping on an HTTP/2 channel using the given payload. The caller is also responsible for starting the stopwatch when the PING frame is sent. @param data the ping payload @param stopwatch a stopwatch for measuring round-trip time

(long data, Stopwatch stopwatch)

Source from the content-addressed store, hash-verified

80 * @param stopwatch a stopwatch for measuring round-trip time
81 */
82 public Http2Ping(long data, Stopwatch stopwatch) {
83 this.data = data;
84 this.stopwatch = stopwatch;
85 }
86
87 /**
88 * Registers a callback that is invoked when the ping operation completes. If this ping operation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected