CONF
- Configuration implementationpublic abstract class ClientTransportConfig<CONF extends TransportConfig> extends TransportConfig
Modifier | Constructor and Description |
---|---|
protected |
ClientTransportConfig(ClientTransportConfig<CONF> parent) |
protected |
ClientTransportConfig(ConnectionProvider connectionProvider,
Map<ChannelOption<?>,?> options,
java.util.function.Supplier<? extends SocketAddress> remoteAddress) |
attributes, bindAddress, channelGroup, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, defaultLoggingHandler, defaultLoopResources, defaultMetricsRecorder, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, options, updateMap
protected ClientTransportConfig(ConnectionProvider connectionProvider, Map<ChannelOption<?>,?> options, java.util.function.Supplier<? extends SocketAddress> remoteAddress)
protected ClientTransportConfig(ClientTransportConfig<CONF> parent)
public int channelHash()
channelHash
in class TransportConfig
public final ConnectionProvider connectionProvider()
ConnectionProvider
ConnectionProvider
@Nullable public final java.util.function.Consumer<? super CONF> doOnConnect()
@Nullable public final java.util.function.Consumer<? super Connection> doOnConnected()
@Nullable public final java.util.function.Consumer<? super Connection> doOnDisconnected()
public final boolean hasProxy()
ClientTransportConfig
is configured with a proxyClientTransportConfig
is configured with a proxy@Nullable public NameResolverProvider getNameResolverProvider()
NameResolverProvider
or nullNameResolverProvider
or null@Nullable public final ProxyProvider proxyProvider()
ProxyProvider
if any or nullProxyProvider
if any or nullpublic final java.util.function.Supplier<? extends SocketAddress> remoteAddress()
SocketAddress
SocketAddress
@Nullable public final AddressResolverGroup<?> resolver()
AddressResolverGroup
or null.
If there is no AddressResolverGroup
configured, the default will be used.AddressResolverGroup
or nullprotected Class<? extends Channel> channelType(boolean isDomainSocket)
TransportConfig
channelType
in class TransportConfig
isDomainSocket
- true if DomainSocketChannel
or
ServerDomainSocketChannel
is needed, false otherwiseprotected abstract AddressResolverGroup<?> defaultAddressResolverGroup()
AddressResolverGroup
that is shared amongst all clients.AddressResolverGroup
protected ConnectionObserver defaultConnectionObserver()
TransportConfig
ConnectionObserver
.defaultConnectionObserver
in class TransportConfig
ConnectionObserver
protected ChannelPipelineConfigurer defaultOnChannelInit()
TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
defaultOnChannelInit
in class TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
protected EventLoopGroup eventLoopGroup()
TransportConfig
EventLoopGroup
.eventLoopGroup
in class TransportConfig
EventLoopGroup
protected void proxyProvider(ProxyProvider proxyProvider)
protected AddressResolverGroup<?> resolverInternal()