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