CONF
- Configuration implementationpublic abstract class ClientTransportConfig<CONF extends TransportConfig> extends TransportConfig
Modifier | Constructor and Description |
---|---|
protected |
ClientTransportConfig(ClientTransportConfig<CONF> parent) |
protected |
ClientTransportConfig(ConnectionProvider connectionProvider,
java.util.Map<io.netty.channel.ChannelOption<?>,?> options,
java.util.function.Supplier<? extends java.net.SocketAddress> remoteAddress) |
Modifier and Type | Method and Description |
---|---|
int |
channelHash() |
protected java.lang.Class<? extends io.netty.channel.Channel> |
channelType(boolean isDomainSocket)
Return the channel type this configuration is associated with, it can be one of the following:
SocketChannel
ServerSocketChannel
DomainSocketChannel
ServerDomainSocketChannel
DatagramChannel
|
ConnectionProvider |
connectionProvider()
Return the
ConnectionProvider |
protected ConnectionObserver |
defaultConnectionObserver()
Return the configured default
ConnectionObserver . |
protected ChannelPipelineConfigurer |
defaultOnChannelInit()
Return the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer() |
java.util.function.Consumer<? super CONF> |
doOnConnect()
Return the configured callback or null
|
java.util.function.Consumer<? super Connection> |
doOnConnected()
Return the configured callback or null
|
java.util.function.Consumer<? super Connection> |
doOnDisconnected()
Return the configured callback or null
|
protected io.netty.channel.EventLoopGroup |
eventLoopGroup()
Return the configured
EventLoopGroup . |
NameResolverProvider |
getNameResolverProvider()
Return the configured
NameResolverProvider or null |
boolean |
hasProxy()
Return true if that
ClientTransportConfig is configured with a proxy |
ProxyProvider |
proxyProvider()
Return the
ProxyProvider if any or null |
protected void |
proxyProvider(ProxyProvider proxyProvider) |
java.util.function.Supplier<? extends java.net.SocketAddress> |
remoteAddress()
Return the remote configured
SocketAddress |
io.netty.resolver.AddressResolverGroup<?> |
resolver()
Return the configured
AddressResolverGroup or null. |
protected io.netty.resolver.AddressResolverGroup<?> |
resolverInternal() |
attributes, bindAddress, channelGroup, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, defaultLoggingHandler, defaultLoopResources, defaultMetricsRecorder, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, options, updateMap
protected ClientTransportConfig(ConnectionProvider connectionProvider, java.util.Map<io.netty.channel.ChannelOption<?>,?> options, java.util.function.Supplier<? extends java.net.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 java.net.SocketAddress> remoteAddress()
SocketAddress
SocketAddress
@Nullable public final io.netty.resolver.AddressResolverGroup<?> resolver()
AddressResolverGroup
or null.
If there is no AddressResolverGroup
configured, the default will be used.AddressResolverGroup
or nullprotected java.lang.Class<? extends io.netty.channel.Channel> channelType(boolean isDomainSocket)
TransportConfig
SocketChannel
ServerSocketChannel
DomainSocketChannel
ServerDomainSocketChannel
DatagramChannel
channelType
in class TransportConfig
isDomainSocket
- true if DomainSocketChannel
or
ServerDomainSocketChannel
is needed, false otherwiseprotected ConnectionObserver defaultConnectionObserver()
TransportConfig
ConnectionObserver
.defaultConnectionObserver
in class TransportConfig
ConnectionObserver
protected ChannelPipelineConfigurer defaultOnChannelInit()
TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
defaultOnChannelInit
in class TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
protected io.netty.channel.EventLoopGroup eventLoopGroup()
TransportConfig
EventLoopGroup
.eventLoopGroup
in class TransportConfig
EventLoopGroup
protected void proxyProvider(ProxyProvider proxyProvider)
protected io.netty.resolver.AddressResolverGroup<?> resolverInternal()