CONF
- Configuration implementationpublic abstract class ServerTransportConfig<CONF extends TransportConfig> extends TransportConfig
Modifier | Constructor and Description |
---|---|
protected |
ServerTransportConfig(Map<ChannelOption<?>,?> options,
Map<ChannelOption<?>,?> childOptions,
Supplier<? extends SocketAddress> bindAddress)
Default ServerTransportConfig with options
|
protected |
ServerTransportConfig(ServerTransportConfig<CONF> parent) |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends 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
|
Map<AttributeKey<?>,?> |
childAttributes()
Return the read-only default channel attributes for each remote connection
|
ConnectionObserver |
childObserver()
Return the configured
ConnectionObserver if any or
ConnectionObserver.emptyListener() for each remote connection |
Map<ChannelOption<?>,?> |
childOptions()
Return the read-only
ChannelOption map for each remote connection |
protected ConnectionObserver |
defaultChildObserver()
Return the configured child lifecycle
ConnectionObserver if any or ConnectionObserver.emptyListener() . |
protected ConnectionObserver |
defaultConnectionObserver()
Return the configured default
ConnectionObserver . |
protected ChannelPipelineConfigurer |
defaultOnChannelInit()
Return the default callback if any or
ChannelPipelineConfigurer.emptyConfigurer() |
Consumer<? super CONF> |
doOnBind()
Return the configured callback or null
|
Consumer<? super DisposableServer> |
doOnBound()
Return the configured callback or null
|
Consumer<? super Connection> |
doOnConnection()
Return the configured callback or null
|
Consumer<? super DisposableServer> |
doOnUnbound()
Return the configured callback or null
|
protected EventLoopGroup |
eventLoopGroup()
Return the configured
EventLoopGroup . |
attributes, bindAddress, channelGroup, channelHash, channelInitializer, channelOperationsProvider, connectionFactory, connectionObserver, defaultLoggingHandler, defaultLoopResources, defaultMetricsRecorder, doOnChannelInit, isPreferNative, loggingHandler, loggingHandler, loopResources, metricsRecorder, metricsRecorder, metricsRecorderInternal, options, updateMap
protected ServerTransportConfig(Map<ChannelOption<?>,?> options, Map<ChannelOption<?>,?> childOptions, Supplier<? extends SocketAddress> bindAddress)
options
- default options for the selectorchildOptions
- default options for each connected channelbindAddress
- the local addressprotected ServerTransportConfig(ServerTransportConfig<CONF> parent)
public final Map<AttributeKey<?>,?> childAttributes()
public final ConnectionObserver childObserver()
ConnectionObserver
if any or
ConnectionObserver.emptyListener()
for each remote connectionConnectionObserver
if any or
ConnectionObserver.emptyListener()
for each remote connectionpublic final Map<ChannelOption<?>,?> childOptions()
ChannelOption
map for each remote connectionChannelOption
map for each remote connection@Nullable public final Consumer<? super CONF> doOnBind()
@Nullable public final Consumer<? super DisposableServer> doOnBound()
@Nullable public final Consumer<? super Connection> doOnConnection()
@Nullable public final Consumer<? super DisposableServer> doOnUnbound()
protected Class<? extends Channel> channelType(boolean isDomainSocket)
TransportConfig
channelType
in class TransportConfig
isDomainSocket
- true if DomainSocketChannel
or
ServerDomainSocketChannel
is needed, false otherwiseprotected ConnectionObserver defaultChildObserver()
ConnectionObserver
if any or ConnectionObserver.emptyListener()
.ConnectionObserver
if any or ConnectionObserver.emptyListener()
protected ConnectionObserver defaultConnectionObserver()
TransportConfig
ConnectionObserver
.defaultConnectionObserver
in class TransportConfig
ConnectionObserver
protected ChannelPipelineConfigurer defaultOnChannelInit()
TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
defaultOnChannelInit
in class TransportConfig
ChannelPipelineConfigurer.emptyConfigurer()
protected final EventLoopGroup eventLoopGroup()
TransportConfig
EventLoopGroup
.eventLoopGroup
in class TransportConfig
EventLoopGroup