Class ReadOnlyTcpClientConfig


  • public final class ReadOnlyTcpClientConfig
    extends java.lang.Object
    Read only view of TcpClientConfig.
    • Method Detail

      • sslContext

        @Nullable
        public io.netty.handler.ssl.SslContext sslContext()
        Returns the SslContext.
        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 not null.

        Returns:
        the non-authoritative port
      • options

        public final java.util.Map<io.netty.channel.ChannelOption,​java.lang.Object> options()
        Returns the ChannelOptions for all channels.
        Returns:
        Unmodifiable map of options
      • idleTimeoutMs

        @Nullable
        public final java.lang.Long idleTimeoutMs()
        Returns the idle timeout as expressed via option ServiceTalkSocketOptions.IDLE_TIMEOUT.
        Returns:
        idle timeout in milliseconds
      • 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.