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

Method keepAliveTime

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

Sets the time without read activity before sending a keepalive ping. An unreasonably small value might be increased, and Long.MAX_VALUE nano seconds or an unreasonably large value will disable keepalive. The typical default is two hours when supported. @throws IllegalArgumentException if ti

(long keepAliveTime, TimeUnit timeUnit)

Source from the content-addressed store, hash-verified

255 * @since 1.47.0
256 */
257 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/9009")
258 public T keepAliveTime(long keepAliveTime, TimeUnit timeUnit) {
259 throw new UnsupportedOperationException();
260 }
261
262 /**
263 * Sets a time waiting for read activity after sending a keepalive ping. If the time expires

Callers 3

startMethod · 0.45
mainMethod · 0.45
GrpcXdsTransportMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected