Class ReadOnlyTcpServerConfig
java.lang.Object
io.servicetalk.tcp.netty.internal.ReadOnlyTcpServerConfig
Read only view of
TcpServerConfig.-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif non-TLS connections should also be accepted on TLS-enabled sockets.final FlushStrategyReturns theFlushStrategyfor this client.final longReturns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT.booleanReturnstrueif the TLS ALPN Extension is configured on either default or any of the SNI configurations.Returns theSocketOptions that are applied to the server socket channel which listens/accepts socket channels.options()Returns theChannelOptions for accepted channels.io.netty.util.Mapping<String,io.netty.handler.ssl.SslContext> Gets theMappingfor SNI.Get theServerSslConfig.io.netty.handler.ssl.SslContextReturns theSslContext.final TransportConfigGet theTransportConfig.Returns theTransportObserverif any for all channels.final UserDataLoggerConfigGet theUserDataLoggerConfigfor wire logging.
-
Method Details
-
isAlpnConfigured
public boolean isAlpnConfigured()Returnstrueif the TLS ALPN Extension is configured on either default or any of the SNI configurations.- Returns:
trueif the TLS ALPN Extension is configured on either default or any of the SNI configurations.
-
transportObserver
Returns theTransportObserverif any for all channels.- Returns:
- the
TransportObserverif any
-
sslConfig
Get theServerSslConfig.- Returns:
- the
ServerSslConfig, ornullif SSL/TLS is not configured.
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()Returns theSslContext.- Returns:
SslContext,nullif none specified
-
sniMapping
Gets theMappingfor SNI.- Returns:
- the
Mappingfor SNI,nullif SNI isn't enabled.
-
acceptInsecureConnections
public boolean acceptInsecureConnections()Returnstrueif non-TLS connections should also be accepted on TLS-enabled sockets.- Returns:
trueif non-TLS connections should also be accepted on TLS-enabled sockets.
-
listenOptions
Returns theSocketOptions that are applied to the server socket channel which listens/accepts socket channels.- Returns:
- Unmodifiable map of options
-
options
Returns theChannelOptions for accepted channels.- Returns:
- Unmodifiable map of options
-
idleTimeoutMs
public final long idleTimeoutMs()Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT.- Returns:
- idle timeout in milliseconds
-
flushStrategy
Returns theFlushStrategyfor this client.- Returns:
FlushStrategyfor this client
-
wireLoggerConfig
Get theUserDataLoggerConfigfor wire logging.- Returns:
- the
UserDataLoggerConfigfor wire logging, ornull.
-
transportConfig
Get theTransportConfig.- Returns:
TransportConfigto use
-