Interface TcpKeepAliveConfiguration.Builder
- Enclosing class:
TcpKeepAliveConfiguration
public static interface TcpKeepAliveConfiguration.Builder
A builder for
TcpKeepAliveConfiguration
.
All implementations of this interface are mutable and not thread safe.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
keepAliveInterval
(Duration keepAliveInterval) Sets the Duration between TCP keepalive packets being sent to the peerkeepAliveProbes
(Integer keepAliveProbes) Sets the number of keepalive probes allowed to fail before the connection is considered lost.keepAliveTimeout
(Duration keepAliveTimeout) Sets the Duration to wait for a keepalive response before considering the connection timed out
-
Method Details
-
keepAliveInterval
Sets the Duration between TCP keepalive packets being sent to the peer- Parameters:
keepAliveInterval
- Duration between TCP keepalive packets being sent to the peer- Returns:
- Builder
-
keepAliveTimeout
Sets the Duration to wait for a keepalive response before considering the connection timed out- Parameters:
keepAliveTimeout
- Duration to wait for a keepalive response before considering the connection timed out- Returns:
- Builder
-
keepAliveProbes
Sets the number of keepalive probes allowed to fail before the connection is considered lost. If not set or set to 0, OS default settings will be used for the probe count.- Parameters:
keepAliveProbes
- Number of keepalive probes allowed to fail before the connection is considered lost.- Returns:
- Builder
-
build
TcpKeepAliveConfiguration build()
-