Package reactor.netty.tcp
Class TcpClientConfig
Encapsulate all necessary configuration for TCP client transport. The public API is read-only.
- Since:
- 1.0.0
- Author:
- Violeta Georgieva
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the associatedChannelOperations.OnSetup, config implementations might override this.protected AddressResolverGroup<?>Provides a globalAddressResolverGroupfromTcpResourcesthat is shared amongst all TCP clients.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()Return true if thatTcpClientsecured via SSL transport.@Nullable SslProviderReturn the currentSslProviderif thatTcpClientsecured via SSL transport or null.Methods inherited from class reactor.netty.transport.ClientTransportConfig
channelType, connectionProvider, defaultConnectionObserver, doOnConnect, doOnConnected, doOnDisconnected, eventLoopGroup, getNameResolverProvider, hasProxy, proxyProvider, proxyProvider, proxyProviderSupplier, proxyProviderSupplier, remoteAddress, resolver, resolverInternalMethods inherited from class reactor.netty.transport.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelInitializer, connectionFactory, connectionObserver, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMap
-
Method Details
-
channelHash
public int channelHash()- Overrides:
channelHashin classClientTransportConfig<TcpClientConfig>
-
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()Return true if thatTcpClientsecured via SSL transport.- Returns:
- true if that
TcpClientsecured via SSL transport
-
sslProvider
Return the currentSslProviderif thatTcpClientsecured via SSL transport or null.- Returns:
- the current
SslProviderif thatTcpClientsecured via SSL transport or null
-
defaultAddressResolverGroup
Provides a globalAddressResolverGroupfromTcpResourcesthat is shared amongst all TCP clients.AddressResolverGroupuses the globalLoopResourcesfromTcpResources.- Specified by:
defaultAddressResolverGroupin classClientTransportConfig<TcpClientConfig>- Returns:
- the global
AddressResolverGroup
-
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 classClientTransportConfig<TcpClientConfig>- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-