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.java.util.Map<io.netty.channel.ChannelOption,java.lang.Object>options()Returns theChannelOptions for all channels.java.lang.StringpreferredAlpnProtocol()Get the preferred ALPN protocol.ClientSslConfigsslConfig()Get theClientSslConfig.io.netty.handler.ssl.SslContextsslContext()Returns theSslContext.UserDataLoggerConfigwireLoggerConfig()Get theUserDataLoggerConfigfor wire logging.
-
-
-
Method Detail
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()
Returns theSslContext.- Returns:
SslContext,nullif none specified
-
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.
-
sslConfig
@Nullable public ClientSslConfig sslConfig()
Get theClientSslConfig.- Returns:
- the
ClientSslConfig, ornullif SSL/TLS is not configured.
-
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.
-
-