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

Method maxConnectionAge

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

Sets the maximum connection age, connections lasting longer than which will be gracefully terminated. An unreasonably small value might be increased. A random jitter of +/-10% will be added to it. Long.MAX_VALUE nano seconds or an unreasonably large value will disable max connection age. @t

(long maxConnectionAge, TimeUnit timeUnit)

Source from the content-addressed store, hash-verified

308 * @since 1.47.0
309 */
310 @ExperimentalApi("https://github.com/grpc/grpc-java/issues/9009")
311 public T maxConnectionAge(long maxConnectionAge, TimeUnit timeUnit) {
312 throw new UnsupportedOperationException();
313 }
314
315 /**
316 * Sets the grace time for the graceful connection termination. Once the max connection age

Callers 1

startMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected