Class ReadOnlyTcpClientConfig
- java.lang.Object
-
- io.servicetalk.tcp.netty.internal.ReadOnlyTcpClientConfig
-
public final class ReadOnlyTcpClientConfig extends java.lang.ObjectRead only view ofTcpClientConfig.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlushStrategyflushStrategy()Returns theFlushStrategyfor this client.java.lang.LongidleTimeoutMs()Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT.booleanisAlpnConfigured()Returnstrueif the TLS ALPN Extension is configured.java.util.Map<io.netty.channel.ChannelOption,java.lang.Object>options()Returns theChannelOptions for all channels.java.lang.StringpreferredAlpnProtocol()Get the preferred ALPN protocol.io.netty.handler.ssl.SslContextsslContext()Returns theSslContext.java.lang.StringsslHostnameVerificationAlgorithm()Returns the hostname verification algorithm, if any.java.lang.StringsslHostnameVerificationHost()Get the non-authoritative name of the host.intsslHostnameVerificationPort()Get the non-authoritative port.UserDataLoggerConfigwireLoggerConfig()Get theUserDataLoggerConfigfor wire logging.
-
-
-
Method Detail
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()
Returns theSslContext.- Returns:
SslContext,nullif none specified
-
sslHostnameVerificationAlgorithm
@Nullable public java.lang.String sslHostnameVerificationAlgorithm()
Returns the hostname verification algorithm, if any.- Returns:
- hostname verification algorithm,
nullif 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 theChannelOptions 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 theFlushStrategyfor this client.- Returns:
FlushStrategyfor this client
-
wireLoggerConfig
@Nullable public final UserDataLoggerConfig wireLoggerConfig()
Get theUserDataLoggerConfigfor wire logging.- Returns:
- the
UserDataLoggerConfigfor wire logging, ornull.
-
isAlpnConfigured
public boolean isAlpnConfigured()
Returnstrueif the TLS ALPN Extension is configured.- Returns:
trueif 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.
-
-