Package reactor.netty.tcp
Class TcpServerConfig
Encapsulate all necessary configuration for TCP server transport. The public API is read-only.
- Since:
- 1.0.0
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionReturn the associatedChannelOperations.OnSetup
, config implementations might override this.protected LoggingHandler
Return the defaultLoggingHandler
to wiretap this transport.protected LoopResources
Return the defaultLoopResources
for this transport.protected ChannelMetricsRecorder
Return the configured metrics recorder.protected ChannelPipelineConfigurer
Return the default callback if any orChannelPipelineConfigurer.emptyConfigurer()
.final boolean
isSecure()
Returns true if thatTcpServer
secured via SSL transport.@Nullable SslProvider
Returns the currentSslProvider
if thatTcpServer
secured via SSL transport or null.Methods inherited from class reactor.netty.transport.ServerTransportConfig
channelType, childAttributes, childObserver, childOptions, defaultChildObserver, defaultConnectionObserver, doOnBind, doOnBound, doOnConnection, doOnUnbound, eventLoopGroup
Methods inherited from class reactor.netty.transport.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelHash, channelInitializer, connectionFactory, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMap
-
Method Details
-
channelOperationsProvider
Description copied from class:TransportConfig
Return the associatedChannelOperations.OnSetup
, config implementations might override this.- Overrides:
channelOperationsProvider
in classTransportConfig
- Returns:
- the associated
ChannelOperations.OnSetup
-
isSecure
public final boolean isSecure()Returns true if thatTcpServer
secured via SSL transport.- Returns:
- true if that
TcpServer
secured via SSL transport
-
sslProvider
Returns the currentSslProvider
if thatTcpServer
secured via SSL transport or null.- Returns:
- the current
SslProvider
if thatTcpServer
secured via SSL transport or null
-
defaultLoggingHandler
Description copied from class:TransportConfig
Return the defaultLoggingHandler
to wiretap this transport.- Specified by:
defaultLoggingHandler
in classTransportConfig
- Returns:
- the default
LoggingHandler
to wiretap this transport
-
defaultLoopResources
Description copied from class:TransportConfig
Return the defaultLoopResources
for this transport.- Specified by:
defaultLoopResources
in classTransportConfig
- Returns:
- the default
LoopResources
for this transport
-
defaultMetricsRecorder
Description copied from class:TransportConfig
Return the configured metrics recorder.- Specified by:
defaultMetricsRecorder
in classTransportConfig
- Returns:
- the configured metrics recorder
-
defaultOnChannelInit
Description copied from class:TransportConfig
Return the default callback if any orChannelPipelineConfigurer.emptyConfigurer()
.- Overrides:
defaultOnChannelInit
in classServerTransportConfig<TcpServerConfig>
- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-