Package reactor.netty.transport
Class ClientTransportConfig<CONF extends TransportConfig>
java.lang.Object
reactor.netty.transport.TransportConfig
reactor.netty.transport.ClientTransportConfig<CONF>
- Type Parameters:
 CONF- Configuration implementation
- Direct Known Subclasses:
 HttpClientConfig,TcpClientConfig,UdpClientConfig
Encapsulate all necessary configuration for client transport. The public API is read-only.
- Since:
 - 1.0.0
 - Author:
 - Stephane Maldini, Violeta Georgieva
 
- 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientTransportConfig(ConnectionProvider connectionProvider, Map<ChannelOption<?>, ?> options, Supplier<? extends SocketAddress> remoteAddress) protected - 
Method Summary
Modifier and TypeMethodDescriptionintchannelType(boolean isDomainSocket) Return the channel type this configuration is associated with, it can be one of the following.Return theConnectionProvider.protected abstract AddressResolverGroup<?>Provides a globalAddressResolverGroupthat is shared amongst all clients.protected ConnectionObserverReturn the configured defaultConnectionObserver.protected ChannelPipelineConfigurerReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.final @Nullable Consumer<? super Connection>Return the configured callback or null.protected EventLoopGroupReturn the configuredEventLoopGroup.@Nullable NameResolverProviderReturn the configuredNameResolverProvideror null.final booleanhasProxy()Return true if thatClientTransportConfigis configured with a proxy.final @Nullable ProxyProviderReturn theProxyProviderif any or null.protected voidproxyProvider(ProxyProvider proxyProvider) final @Nullable Supplier<ProxyProvider>Return theProxyProvidersupplier if any or null.protected voidproxyProviderSupplier(Supplier<ProxyProvider> proxyProviderSupplier) final Supplier<? extends SocketAddress>Return the remote configuredSocketAddress.final @Nullable AddressResolverGroup<?>resolver()Return the configuredAddressResolverGroupor null.protected AddressResolverGroup<?>Methods inherited from class reactor.netty.transport.TransportConfig
attributes, bindAddress, bindAddress, channelGroup, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, defaultLoggingHandler, defaultLoopResources, defaultMetricsRecorder, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMap 
- 
Constructor Details
- 
ClientTransportConfig
protected ClientTransportConfig(ConnectionProvider connectionProvider, Map<ChannelOption<?>, ?> options, Supplier<? extends SocketAddress> remoteAddress)  - 
ClientTransportConfig
 
 - 
 - 
Method Details
- 
channelHash
public int channelHash()- Overrides:
 channelHashin classTransportConfig
 - 
connectionProvider
Return theConnectionProvider.- Returns:
 - the 
ConnectionProvider 
 - 
doOnConnect
Return the configured callback or null.- Returns:
 - the configured callback or null
 
 - 
doOnConnected
Return the configured callback or null.- Returns:
 - the configured callback or null
 
 - 
doOnDisconnected
Return the configured callback or null.- Returns:
 - the configured callback or null
 
 - 
hasProxy
public final boolean hasProxy()Return true if thatClientTransportConfigis configured with a proxy.- Returns:
 - true if that 
ClientTransportConfigis configured with a proxy 
 - 
getNameResolverProvider
Return the configuredNameResolverProvideror null.- Returns:
 - the configured 
NameResolverProvideror null 
 - 
proxyProvider
Return theProxyProviderif any or null.- Returns:
 - the 
ProxyProviderif any or null 
 - 
proxyProviderSupplier
Return theProxyProvidersupplier if any or null.- Returns:
 - the 
ProxyProvidersupplier if any or null 
 - 
remoteAddress
Return the remote configuredSocketAddress.- Returns:
 - the remote configured 
SocketAddress 
 - 
resolver
Return the configuredAddressResolverGroupor null. If there is noAddressResolverGroupconfigured, the default will be used.- Returns:
 - the configured 
AddressResolverGroupor null 
 - 
channelType
Description copied from class:TransportConfigReturn the channel type this configuration is associated with, it can be one of the following.- Specified by:
 channelTypein classTransportConfig- Parameters:
 isDomainSocket- true ifDomainSocketChannelorServerDomainSocketChannelis needed, false otherwise- Returns:
 - the channel type this configuration is associated with
 
 - 
defaultAddressResolverGroup
Provides a globalAddressResolverGroupthat is shared amongst all clients.- Returns:
 - the global 
AddressResolverGroup 
 - 
defaultConnectionObserver
Description copied from class:TransportConfigReturn the configured defaultConnectionObserver.- Specified by:
 defaultConnectionObserverin classTransportConfig- Returns:
 - the configured default 
ConnectionObserver 
 - 
defaultOnChannelInit
Description copied from class:TransportConfigReturn the default callback if any orChannelPipelineConfigurer.emptyConfigurer().- Specified by:
 defaultOnChannelInitin classTransportConfig- Returns:
 - the default callback if any or 
ChannelPipelineConfigurer.emptyConfigurer() 
 - 
eventLoopGroup
Description copied from class:TransportConfigReturn the configuredEventLoopGroup.- Specified by:
 eventLoopGroupin classTransportConfig- Returns:
 - the configured 
EventLoopGroup 
 - 
proxyProvider
 - 
proxyProviderSupplier
 - 
resolverInternal
 
 -