Class ReadOnlyTcpClientConfig
java.lang.Object
io.servicetalk.tcp.netty.internal.ReadOnlyTcpClientConfig
Read only view of
TcpClientConfig
.-
Method Summary
Modifier and TypeMethodDescriptionfinal FlushStrategy
Returns theFlushStrategy
for this client.final long
Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT
.options()
Returns theChannelOption
s for accepted channels.Get the preferred ALPN protocol.Get theClientSslConfig
.io.netty.handler.ssl.SslContext
Returns theSslContext
.final TransportConfig
Get theTransportConfig
.final UserDataLoggerConfig
Get theUserDataLoggerConfig
for wire logging.withSslConfigPeerHost
(String peerHost, int peerPort, String sniHostname, String hostnameVerificationAlgorithm) Create a newReadOnlyTcpClientConfig
replacingClientSslConfig.peerHost()
,ClientSslConfig.peerPort()
, andClientSslConfig.sniHostname()
.
-
Method Details
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()Returns theSslContext
.- Returns:
SslContext
,null
if 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
, ornull
if SSL/TLS is not configured.
-
withSslConfigPeerHost
public ReadOnlyTcpClientConfig withSslConfigPeerHost(String peerHost, int peerPort, @Nullable String sniHostname, @Nullable String hostnameVerificationAlgorithm) Create a newReadOnlyTcpClientConfig
replacingClientSslConfig.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
ReadOnlyTcpClientConfig
replacingClientSslConfig.peerHost()
andClientSslConfig.peerPort()
.
-
options
Returns theChannelOption
s 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 theFlushStrategy
for this client.- Returns:
FlushStrategy
for this client
-
wireLoggerConfig
Get theUserDataLoggerConfig
for wire logging.- Returns:
- the
UserDataLoggerConfig
for wire logging, ornull
.
-
transportConfig
Get theTransportConfig
.- Returns:
TransportConfig
to use
-