public static interface TcpKeepAliveConfiguration.Builder
TcpKeepAliveConfiguration.
All implementations of this interface are mutable and not thread safe.
| Modifier and Type | Method and Description |
|---|---|
TcpKeepAliveConfiguration |
build() |
TcpKeepAliveConfiguration.Builder |
keepAliveInterval(Duration keepAliveInterval)
Sets the Duration between TCP keepalive packets being sent to the peer
|
TcpKeepAliveConfiguration.Builder |
keepAliveProbes(Integer keepAliveProbes)
Sets the number of keepalive probes allowed to fail before the connection is considered lost.
|
TcpKeepAliveConfiguration.Builder |
keepAliveTimeout(Duration keepAliveTimeout)
Sets the Duration to wait for a keepalive response before considering the connection timed out
|
TcpKeepAliveConfiguration.Builder keepAliveInterval(Duration keepAliveInterval)
keepAliveInterval - Duration between TCP keepalive packets being sent to the peerTcpKeepAliveConfiguration.Builder keepAliveTimeout(Duration keepAliveTimeout)
keepAliveTimeout - Duration to wait for a keepalive response before considering the connection timed outTcpKeepAliveConfiguration.Builder keepAliveProbes(Integer keepAliveProbes)
keepAliveProbes - Number of keepalive probes allowed to fail before the connection is considered lost.TcpKeepAliveConfiguration build()
Copyright © 2026. All rights reserved.