Class ReadOnlyTcpClientConfig
- java.lang.Object
-
- io.servicetalk.tcp.netty.internal.ReadOnlyTcpClientConfig
-
public final class ReadOnlyTcpClientConfig extends java.lang.Object
Read only view ofTcpClientConfig
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlushStrategy
flushStrategy()
Returns theFlushStrategy
for this client.java.lang.Long
idleTimeoutMs()
Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT
.boolean
isAlpnConfigured()
Returnstrue
if the TLS ALPN Extension is configured.java.util.Map<io.netty.channel.ChannelOption,java.lang.Object>
options()
Returns theChannelOption
s for all channels.java.lang.String
preferredAlpnProtocol()
Get the preferred ALPN protocol.io.netty.handler.ssl.SslContext
sslContext()
Returns theSslContext
.java.lang.String
sslHostnameVerificationAlgorithm()
Returns the hostname verification algorithm, if any.java.lang.String
sslHostnameVerificationHost()
Get the non-authoritative name of the host.int
sslHostnameVerificationPort()
Get the non-authoritative port.UserDataLoggerConfig
wireLoggerConfig()
Get theUserDataLoggerConfig
for wire logging.
-
-
-
Method Detail
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()
Returns theSslContext
.- Returns:
SslContext
,null
if none specified
-
sslHostnameVerificationAlgorithm
@Nullable public java.lang.String sslHostnameVerificationAlgorithm()
Returns the hostname verification algorithm, if any.- Returns:
- hostname verification algorithm,
null
if none specified
-
sslHostnameVerificationHost
@Nullable public java.lang.String sslHostnameVerificationHost()
Get the non-authoritative name of the host.- Returns:
- the non-authoritative name of the host
-
sslHostnameVerificationPort
public int sslHostnameVerificationPort()
Get the non-authoritative port.Only valid if
sslHostnameVerificationHost()
is notnull
.- Returns:
- the non-authoritative port
-
options
public final java.util.Map<io.netty.channel.ChannelOption,java.lang.Object> options()
Returns theChannelOption
s for all channels.- Returns:
- Unmodifiable map of options
-
idleTimeoutMs
@Nullable public final java.lang.Long idleTimeoutMs()
Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT
.- Returns:
- idle timeout in milliseconds
-
flushStrategy
public final FlushStrategy flushStrategy()
Returns theFlushStrategy
for this client.- Returns:
FlushStrategy
for this client
-
wireLoggerConfig
@Nullable public final UserDataLoggerConfig wireLoggerConfig()
Get theUserDataLoggerConfig
for wire logging.- Returns:
- the
UserDataLoggerConfig
for wire logging, ornull
.
-
isAlpnConfigured
public boolean isAlpnConfigured()
Returnstrue
if the TLS ALPN Extension is configured.- Returns:
true
if the TLS ALPN Extension is configured
-
preferredAlpnProtocol
@Nullable public java.lang.String 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.
-
-