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)
| 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 |