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 TypeMethodDescriptionint
Return the associatedChannelOperations.OnSetup
, config implementations might override this.protected AddressResolverGroup<?>
Provides a globalAddressResolverGroup
fromTcpResources
that is shared amongst all TCP clients.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()
Return true if thatTcpClient
secured via SSL transport.@Nullable SslProvider
Return the currentSslProvider
if thatTcpClient
secured 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, resolverInternal
Methods 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:
channelHash
in classClientTransportConfig<TcpClientConfig>
-
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()Return true if thatTcpClient
secured via SSL transport.- Returns:
- true if that
TcpClient
secured via SSL transport
-
sslProvider
Return the currentSslProvider
if thatTcpClient
secured via SSL transport or null.- Returns:
- the current
SslProvider
if thatTcpClient
secured via SSL transport or null
-
defaultAddressResolverGroup
Provides a globalAddressResolverGroup
fromTcpResources
that is shared amongst all TCP clients.AddressResolverGroup
uses the globalLoopResources
fromTcpResources
.- Specified by:
defaultAddressResolverGroup
in classClientTransportConfig<TcpClientConfig>
- Returns:
- the global
AddressResolverGroup
-
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 classClientTransportConfig<TcpClientConfig>
- Returns:
- the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer()
-