Class ReadOnlyTcpServerConfig
java.lang.Object
io.servicetalk.tcp.netty.internal.ReadOnlyTcpServerConfig
Read only view of
TcpServerConfig
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if non-TLS connections should also be accepted on TLS-enabled sockets.final FlushStrategy
Returns theFlushStrategy
for this client.final long
Returns the idle timeout as expressed via optionServiceTalkSocketOptions.IDLE_TIMEOUT
.boolean
Returnstrue
if the TLS ALPN Extension is configured on either default or any of the SNI configurations.Returns theSocketOption
s that are applied to the server socket channel which listens/accepts socket channels.options()
Returns theChannelOption
s for accepted channels.io.netty.util.Mapping<String,
io.netty.handler.ssl.SslContext> Gets theMapping
for SNI.Get theServerSslConfig
.io.netty.handler.ssl.SslContext
Returns theSslContext
.final TransportConfig
Get theTransportConfig
.Returns theTransportObserver
if any for all channels.final UserDataLoggerConfig
Get theUserDataLoggerConfig
for wire logging.
-
Method Details
-
isAlpnConfigured
public boolean isAlpnConfigured()Returnstrue
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
Returns theTransportObserver
if any for all channels.- Returns:
- the
TransportObserver
if any
-
sslConfig
Get theServerSslConfig
.- Returns:
- the
ServerSslConfig
, ornull
if SSL/TLS is not configured.
-
sslContext
@Nullable public io.netty.handler.ssl.SslContext sslContext()Returns theSslContext
.- Returns:
SslContext
,null
if none specified
-
sniMapping
Gets theMapping
for SNI.- Returns:
- the
Mapping
for SNI,null
if SNI isn't enabled.
-
acceptInsecureConnections
public boolean acceptInsecureConnections()Returnstrue
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
Returns theSocketOption
s that are applied to the server socket channel which listens/accepts socket channels.- Returns:
- Unmodifiable map of options
-
options
Returns theChannelOption
s 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 theFlushStrategy
for this client.- Returns:
FlushStrategy
for this client
-
wireLoggerConfig
Get theUserDataLoggerConfig
for wire logging.- Returns:
- the
UserDataLoggerConfig
for wire logging, ornull
.
-
transportConfig
Get theTransportConfig
.- Returns:
TransportConfig
to use
-