Interface NetConfig
-
public interface NetConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Boolean>
alpn()
Set the ALPN usage.Optional<List<String>>
applicationLayerProtocols()
Sets the list of application-layer protocols to provide to the server during theApplication-Layer Protocol Negotiation
.Optional<Duration>
connectionTimeout()
Set the connect timeout.Optional<Boolean>
cork()
Enable theTCP_CORK
option - only with linux native transport.Optional<Boolean>
fastOpen()
Enable theTCP_FASTOPEN
option - only with linux native transport.Optional<Duration>
idleTimeout()
Set the idle timeout.Optional<Boolean>
keepAlive()
Set whether keep alive is enabledOptional<String>
localAddress()
Set the local interface to bind for network connections.Optional<Boolean>
noDelay()
Set whether no delay is enabledOptional<List<String>>
nonProxyHosts()
Set a list of remote hosts that are not proxied when the client is configured to use a proxy.ProxyConfig
proxyOptions()
Set proxy options for connections via CONNECT proxyOptional<Boolean>
quickAck()
Enable theTCP_QUICKACK
option - only with linux native transport.Optional<Duration>
readIdleTimeout()
Set the read idle timeout.OptionalInt
receiveBufferSize()
Set the TCP receive buffer size.OptionalInt
reconnectAttempts()
Set the value of reconnect attempts.Optional<Duration>
reconnectInterval()
Set the reconnect interval.Optional<Boolean>
reuseAddress()
Whether to reuse the address.Optional<Boolean>
reusePort()
Whether to reuse the port.Optional<Set<String>>
secureTransportProtocols()
Sets the list of enabled SSL/TLS protocols.OptionalInt
sendBufferSize()
Set the TCP send buffer size.Optional<Duration>
soLinger()
Set theSO_linger
keep alive duration.OptionalInt
trafficClass()
Set the value of traffic class.Optional<Duration>
writeIdleTimeout()
Set the write idle timeout.
-
-
-
Method Detail
-
applicationLayerProtocols
Optional<List<String>> applicationLayerProtocols()
Sets the list of application-layer protocols to provide to the server during theApplication-Layer Protocol Negotiation
.
-
secureTransportProtocols
Optional<Set<String>> secureTransportProtocols()
Sets the list of enabled SSL/TLS protocols.
-
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
-
receiveBufferSize
OptionalInt receiveBufferSize()
Set the TCP receive buffer size.
-
reconnectAttempts
OptionalInt reconnectAttempts()
Set the value of reconnect attempts.
-
sendBufferSize
OptionalInt sendBufferSize()
Set the TCP send buffer size.
-
fastOpen
Optional<Boolean> fastOpen()
Enable theTCP_FASTOPEN
option - only with linux native transport.
-
quickAck
Optional<Boolean> quickAck()
Enable theTCP_QUICKACK
option - only with linux native transport.
-
trafficClass
OptionalInt trafficClass()
Set the value of traffic class.
-
-