Interface NetConfig


  • public interface NetConfig
    • Method Detail

      • applicationLayerProtocols

        Optional<List<String>> applicationLayerProtocols()
        Sets the list of application-layer protocols to provide to the server during the Application-Layer Protocol Negotiation.
      • secureTransportProtocols

        Optional<Set<String>> secureTransportProtocols()
        Sets the list of enabled SSL/TLS protocols.
      • connectionTimeout

        Optional<Duration> connectionTimeout()
        Set the connect timeout.
      • nonProxyHosts

        Optional<List<String>> nonProxyHosts()
        Set a list of remote hosts that are not proxied when the client is configured to use a proxy.
      • proxyOptions

        ProxyConfig proxyOptions()
        Set proxy options for connections via CONNECT proxy
      • readIdleTimeout

        Optional<Duration> readIdleTimeout()
        Set the read idle timeout.
      • receiveBufferSize

        OptionalInt receiveBufferSize()
        Set the TCP receive buffer size.
      • reconnectAttempts

        OptionalInt reconnectAttempts()
        Set the value of reconnect attempts.
      • reconnectInterval

        Optional<Duration> reconnectInterval()
        Set the reconnect interval.
      • reuseAddress

        Optional<Boolean> reuseAddress()
        Whether to reuse the address.
      • sendBufferSize

        OptionalInt sendBufferSize()
        Set the TCP send buffer size.
      • soLinger

        Optional<Duration> soLinger()
        Set the SO_linger keep alive duration.
      • cork

        Optional<Boolean> cork()
        Enable the TCP_CORK option - only with linux native transport.
      • fastOpen

        Optional<Boolean> fastOpen()
        Enable the TCP_FASTOPEN option - only with linux native transport.
      • keepAlive

        Optional<Boolean> keepAlive()
        Set whether keep alive is enabled
      • quickAck

        Optional<Boolean> quickAck()
        Enable the TCP_QUICKACK option - only with linux native transport.
      • trafficClass

        OptionalInt trafficClass()
        Set the value of traffic class.
      • writeIdleTimeout

        Optional<Duration> writeIdleTimeout()
        Set the write idle timeout.
      • localAddress

        Optional<String> localAddress()
        Set the local interface to bind for network connections. When the local address is null, it will pick any local address, the default local address is null.