Class ReadOnlyTcpServerConfig

java.lang.Object
io.servicetalk.tcp.netty.internal.ReadOnlyTcpServerConfig

public final class ReadOnlyTcpServerConfig extends Object
Read only view of TcpServerConfig.
  • Method Details

    • 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.
    • transportObserver

      public TransportObserver transportObserver()
      Returns the TransportObserver if any for all channels.
      Returns:
      the TransportObserver if any
    • sslConfig

      @Nullable public ServerSslConfig sslConfig()
      Returns:
      the ServerSslConfig, or null if SSL/TLS is not configured.
    • 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<String,io.netty.handler.ssl.SslContext> sniMapping()
      Gets the Mapping for SNI.
      Returns:
      the Mapping for SNI, null if SNI isn't enabled.
    • acceptInsecureConnections

      public boolean acceptInsecureConnections()
      Returns true if non-TLS connections should also be accepted on TLS-enabled sockets.
      Returns:
      true if non-TLS connections should also be accepted on TLS-enabled sockets.
    • listenOptions

      public Map<io.netty.channel.ChannelOption,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 Map<io.netty.channel.ChannelOption,Object> options()
      Returns the ChannelOptions for accepted channels.
      Returns:
      Unmodifiable map of options
    • idleTimeoutMs

      public final long idleTimeoutMs()
      Returns the idle timeout as expressed via option ServiceTalkSocketOptions.IDLE_TIMEOUT.
      Returns:
      idle timeout in milliseconds
    • flushStrategy

      public final FlushStrategy flushStrategy()
      Returns the FlushStrategy for this client.
      Returns:
      FlushStrategy for this client
    • wireLoggerConfig

      @Nullable public final UserDataLoggerConfig wireLoggerConfig()
      Get the UserDataLoggerConfig for wire logging.
      Returns:
      the UserDataLoggerConfig for wire logging, or null.