Class ReadOnlyTcpClientConfig
java.lang.Object
io.servicetalk.tcp.netty.internal.ReadOnlyTcpClientConfig
Read only view of
TcpClientConfig.-
Method Summary
Modifier and TypeMethodDescriptionfinal FlushStrategyReturns theFlushStrategyfor this client.final longReturns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT.options()Returns theChannelOptions for accepted channels.Get the preferred ALPN protocol.Get theClientSslConfig.io.netty.handler.ssl.SslContextReturns theSslContext.final TransportConfigGet theTransportConfig.final UserDataLoggerConfigGet theUserDataLoggerConfigfor wire logging.withSslConfigPeerHost(String peerHost, int peerPort, String sniHostname, String hostnameVerificationAlgorithm) Create a newReadOnlyTcpClientConfigreplacingClientSslConfig.peerHost(),ClientSslConfig.peerPort(), andClientSslConfig.sniHostname().
-
Method Details
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()Returns theSslContext.- Returns:
SslContext,nullif none specified
-
preferredAlpnProtocol
Get the preferred ALPN protocol. If a protocol sensitive decision must be made without knowing which protocol is negotiated (e.g. at the client level) this protocol can be used as a best guess.- Returns:
- the preferred ALPN protocol.
-
sslConfig
Get theClientSslConfig.- Returns:
- the
ClientSslConfig, ornullif SSL/TLS is not configured.
-
withSslConfigPeerHost
public ReadOnlyTcpClientConfig withSslConfigPeerHost(String peerHost, int peerPort, @Nullable String sniHostname, @Nullable String hostnameVerificationAlgorithm) Create a newReadOnlyTcpClientConfigreplacingClientSslConfig.peerHost(),ClientSslConfig.peerPort(), andClientSslConfig.sniHostname().- Parameters:
peerHost- The new value forClientSslConfig.peerHost().peerPort- The new value forClientSslConfig.peerPort().sniHostname- The new value forClientSslConfig.sniHostname().hostnameVerificationAlgorithm- The new value forClientSslConfig.hostnameVerificationAlgorithm().- Returns:
- a new
ReadOnlyTcpClientConfigreplacingClientSslConfig.peerHost()andClientSslConfig.peerPort().
-
options
Returns theChannelOptions for accepted channels.- Returns:
- Unmodifiable map of options
-
idleTimeoutMs
public final long idleTimeoutMs()Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT.- Returns:
- idle timeout in milliseconds
-
flushStrategy
Returns theFlushStrategyfor this client.- Returns:
FlushStrategyfor this client
-
wireLoggerConfig
Get theUserDataLoggerConfigfor wire logging.- Returns:
- the
UserDataLoggerConfigfor wire logging, ornull.
-
transportConfig
Get theTransportConfig.- Returns:
TransportConfigto use
-