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 LoggingHandlerReturn the defaultLoggingHandlerto wiretap this transport.protected LoopResourcesReturn the defaultLoopResourcesfor this transport.protected ChannelMetricsRecorderReturn the configured metrics recorder.protected ChannelPipelineConfigurerReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().final booleanisSecure()Returns true if thatTcpServersecured via SSL transport.@Nullable SslProviderReturns the currentSslProviderif thatTcpServersecured via SSL transport or null.Methods inherited from class reactor.netty.transport.ServerTransportConfig
channelType, childAttributes, childObserver, childOptions, defaultChildObserver, defaultConnectionObserver, doOnBind, doOnBound, doOnConnection, doOnUnbound, eventLoopGroup, maxConnectionsMethods 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:TransportConfigReturn the associatedChannelOperations.OnSetup, config implementations might override this.- Overrides:
channelOperationsProviderin classTransportConfig- Returns:
- the associated
ChannelOperations.OnSetup
-
isSecure
public final boolean isSecure()Returns true if thatTcpServersecured via SSL transport.- Returns:
- true if that
TcpServersecured via SSL transport
-
sslProvider
Returns the currentSslProviderif thatTcpServersecured via SSL transport or null.- Returns:
- the current
SslProviderif thatTcpServersecured via SSL transport or null
-
defaultLoggingHandler
Description copied from class:TransportConfigReturn the defaultLoggingHandlerto wiretap this transport.- Specified by:
defaultLoggingHandlerin classTransportConfig- Returns:
- the default
LoggingHandlerto wiretap this transport
-
defaultLoopResources
Description copied from class:TransportConfigReturn the defaultLoopResourcesfor this transport.- Specified by:
defaultLoopResourcesin classTransportConfig- Returns:
- the default
LoopResourcesfor this transport
-
defaultMetricsRecorder
Description copied from class:TransportConfigReturn the configured metrics recorder.- Specified by:
defaultMetricsRecorderin classTransportConfig- Returns:
- the configured metrics recorder
-
defaultOnChannelInit
Description copied from class:TransportConfigReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().- Overrides:
defaultOnChannelInitin classServerTransportConfig<TcpServerConfig>- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-