public class ExtendedKeepAliveSupport extends Object
Extended keep-alive options (TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT) are supported on:
macOS (kqueue) does not support per-socket extended keep-alive options.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
applyKeepAlive(io.netty.bootstrap.Bootstrap bootstrap,
int count,
Duration idle,
Duration interval)
Apply extended keep-alive options to the bootstrap.
|
static boolean |
isSupported()
Returns whether extended TCP keep-alive options are supported on the current platform.
|
public static boolean isSupported()
true if extended keep-alive options can be applied, false otherwisepublic static boolean applyKeepAlive(io.netty.bootstrap.Bootstrap bootstrap,
int count,
Duration idle,
Duration interval)
bootstrap - the Netty bootstrap to configurecount - the maximum number of keepalive probes TCP should send before dropping the connectionidle - the time the connection needs to remain idle before TCP starts sending keepalive probesinterval - the time between individual keepalive probestrue if the options were applied, false otherwiseCopyright © 2026 lettuce.io. All rights reserved.