Class ReadOnlyTcpServerConfig


  • public final class ReadOnlyTcpServerConfig
    extends java.lang.Object
    Read only view of TcpServerConfig.
    • Method Detail

      • isAlpnConfigured

        public boolean isAlpnConfigured()
        Returns true if the TLS ALPN Extension is configured on either default or any of the SNI configurations.
        Returns:
        true if the TLS ALPN Extension is configured on either default or any of the SNI configurations.
      • sslContext

        @Nullable
        public io.netty.handler.ssl.SslContext sslContext()
        Returns the SslContext.
        Returns:
        SslContext, null if none specified
      • sniMapping

        @Nullable
        public io.netty.util.Mapping<java.lang.String,​io.netty.handler.ssl.SslContext> sniMapping()
        Gets the Mapping for SNI.
        Returns:
        the Mapping for SNI, null if SNI isn't enabled.
      • listenOptions

        public java.util.Map<io.netty.channel.ChannelOption,​java.lang.Object> listenOptions()
        Returns the SocketOptions that are applied to the server socket channel which listens/accepts socket channels.
        Returns:
        Unmodifiable map of options
      • options

        public final java.util.Map<io.netty.channel.ChannelOption,​java.lang.Object> options()
        Returns the ChannelOptions for accepted 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