Interface TcpKeepAliveConfiguration.Builder

    • Method Detail

      • keepAliveInterval

        TcpKeepAliveConfiguration.Builder keepAliveInterval​(Duration 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

        TcpKeepAliveConfiguration.Builder keepAliveTimeout​(Duration 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

        TcpKeepAliveConfiguration.Builder keepAliveProbes​(Integer 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