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

Method keepAliveTimeout

api/src/main/java/io/grpc/ServerBuilder.java:275–278  ·  view source on GitHub ↗

Sets a time waiting for read activity after sending a keepalive ping. If the time expires without any read activity on the connection, the connection is considered dead. An unreasonably small value might be increased. Defaults to 20 seconds when supported. This value should be at least multiple

(long keepAliveTimeout, TimeUnit timeUnit)

Source from the content-addressed store, hash-verified

273 * @since 1.47.0
274 */
275 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/9009")
276 public T keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) {
277 throw new UnsupportedOperationException();
278 }
279
280 /**
281 * Sets the maximum connection idle time, connections being idle for longer than which will be

Callers 3

createMethod · 0.45
startMethod · 0.45
mainMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected