public NettyServerBuilder permitKeepAliveTime ( long keepAliveTime , TimeUnit timeUnit ) { checkArgument ( keepAliveTime >= 0 , "permit keepalive time must be non-negative" ) ; permitKeepAliveTimeInNanos = timeUnit . toNanos ( keepAliveTime ) ; return this ; }
Specify the most aggressive keep - alive time clients are permitted to configure . The server will try to detect clients exceeding this rate and when detected will forcefully close the connection . The default is 5 minutes .