| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Map | |
| pack-priv Supplier | |
| pack-priv ChannelGroup | |
| pack-priv ChannelPipelineConfigurer | |
| pack-priv static final Logger | |
| pack-priv LoggingHandler | |
| pack-priv LoopResources | |
| pack-priv ChannelMetricsRecorder | |
| pack-priv ConnectionObserver | |
| pack-priv Map | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | TransportConfig(Map<ChannelOption<?>, ?> options, Supplier<? extends SocketAddress> bindAddress)
Default TransportConfig with options. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final Map | Returns: the read-only default channel attributesReturn the read-only default channel attributes. |
| public final Supplier | Returns: theSocketAddress supplierReturn the local |
| public final ChannelGroup | Returns: the configuredChannelGroup or nullReturn the configured |
| public int | |
| public final ChannelInitializer | Returns: theChannelInitializer that will be used for initializing the channel pipelinethe configured connectionObserver, SocketAddress ConnectionObserverthe remote address remoteAddress, boolean channel initializer for the server or for the client onServer)Return the |
| public ChannelOperations. | Returns: the associatedChannelOperations.Return the associated |
| protected abstract Class | Returns: the channel type this configuration is associated withtrue if isDomainSocket)io. or
io. is needed, false otherwiseReturn the channel type this configuration is associated with, it can be one of the following. |
| protected ChannelFactory | connectionFactory(EventLoopGroup
the elg, boolean EventLoopGrouptrue if isDomainSocket)io. or
io. is needed, false otherwise
Deprecated
as a consequence of
Return the ChannelFactory being deprecated.
ChannelFactory which is used to create Channel instances.
|
| public final ConnectionObserver | connectionObserver()
Return the configured |
| protected abstract ConnectionObserver | Returns: the configured defaultConnectionObserverReturn the configured default |
| protected abstract LoggingHandler | Returns: the defaultLoggingHandler to wiretap this transportReturn the default |
| protected abstract LoopResources | Returns: the defaultLoopResources for this transportReturn the default |
| protected abstract ChannelMetricsRecorder | Returns: the configured metrics recorderReturn the configured metrics recorder. |
| protected abstract ChannelPipelineConfigurer | Returns: the default callback if any orChannelPipelineConfigurer#emptyConfigurer()Return the default callback if any or |
| public final ChannelPipelineConfigurer | Returns: the configured callback if any orChannelPipelineConfigurer#emptyConfigurer()Return the configured callback if any or |
| protected abstract EventLoopGroup | |
| public final boolean | Returns: true if prefer native event loop and channel factory (e.g. epoll or kqueue)Return |
| public final LoggingHandler | Returns: the configuredLoggingHandler or nullReturn the configured |
| protected void | |
| public final LoopResources | Returns: the configuredLoopResources or the defaultReturn the configured |
| public final Supplier | Returns: the configured metrics recorderChannelMetricsRecorder or nullReturn the configured metrics recorder |
| protected void | metricsRecorder(Supplier<? extends ChannelMetricsRecorder>
a supplier for the metricsRecorderSupplier)ChannelMetricsRecorderObtains immediately the |
| protected ChannelMetricsRecorder | |
| public final Map | |
| protected static < key type to add K, value to add V> Map |
| attrs | back to summary |
|---|---|
| pack-priv Map<AttributeKey<?>, ?> attrs | |
| bindAddress | back to summary |
|---|---|
| pack-priv Supplier<? extends SocketAddress> bindAddress | |
| channelGroup | back to summary |
|---|---|
| pack-priv ChannelGroup channelGroup | |
| doOnChannelInit | back to summary |
|---|---|
| pack-priv ChannelPipelineConfigurer doOnChannelInit | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| loggingHandler | back to summary |
|---|---|
| pack-priv LoggingHandler loggingHandler | |
| loopResources | back to summary |
|---|---|
| pack-priv LoopResources loopResources | |
| metricsRecorder | back to summary |
|---|---|
| pack-priv ChannelMetricsRecorder metricsRecorder | |
| observer | back to summary |
|---|---|
| pack-priv ConnectionObserver observer | |
| options | back to summary |
|---|---|
| pack-priv Map<ChannelOption<?>, ?> options | |
| preferNative | back to summary |
|---|---|
| pack-priv boolean preferNative | |
| TransportConfig | back to summary |
|---|---|
| protected TransportConfig(Map<ChannelOption<?>, ?> options) Default TransportConfig with options. | |
| TransportConfig | back to summary |
|---|---|
| protected TransportConfig(Map<ChannelOption<?>, ?> options, Supplier<? extends SocketAddress> bindAddress) Default TransportConfig with options. | |
| TransportConfig | back to summary |
|---|---|
| protected TransportConfig(TransportConfig parent) Create TransportConfig from an existing one. | |
| attributes | back to summary |
|---|---|
| public final Map Return the read-only default channel attributes.
| |
| bindAddress | back to summary |
|---|---|
| public final Supplier Return the local
| |
| channelGroup | back to summary |
|---|---|
| public final ChannelGroup channelGroup() Return the configured
| |
| channelHash | back to summary |
|---|---|
| public int channelHash() | |
| channelInitializer | back to summary |
|---|---|
| public final ChannelInitializer Return the
| |
| channelOperationsProvider | back to summary |
|---|---|
| public ChannelOperations. Return the associated
| |
| channelType | back to summary |
|---|---|
| protected abstract Class Return the channel type this configuration is associated with, it can be one of the following.
| |
| connectionFactory | back to summary |
|---|---|
| protected ChannelFactory Deprecated as a consequence of Return the
| |
| connectionObserver | back to summary |
|---|---|
| public final ConnectionObserver connectionObserver() Return the configured
| |
| defaultConnectionObserver | back to summary |
|---|---|
| protected abstract ConnectionObserver defaultConnectionObserver() Return the configured default
| |
| defaultLoggingHandler | back to summary |
|---|---|
| protected abstract LoggingHandler defaultLoggingHandler() Return the default
| |
| defaultLoopResources | back to summary |
|---|---|
| protected abstract LoopResources defaultLoopResources() Return the default
| |
| defaultMetricsRecorder | back to summary |
|---|---|
| protected abstract ChannelMetricsRecorder defaultMetricsRecorder() Return the configured metrics recorder.
| |
| defaultOnChannelInit | back to summary |
|---|---|
| protected abstract ChannelPipelineConfigurer defaultOnChannelInit() Return the default callback if any or
| |
| doOnChannelInit | back to summary |
|---|---|
| public final ChannelPipelineConfigurer doOnChannelInit() Return the configured callback if any or
| |
| eventLoopGroup | back to summary |
|---|---|
| protected abstract EventLoopGroup eventLoopGroup() Return the configured
| |
| isPreferNative | back to summary |
|---|---|
| public final boolean isPreferNative() Return
| |
| loggingHandler | back to summary |
|---|---|
| public final LoggingHandler loggingHandler() Return the configured
| |
| loggingHandler | back to summary |
|---|---|
| protected void loggingHandler(LoggingHandler loggingHandler) | |
| loopResources | back to summary |
|---|---|
| public final LoopResources loopResources() Return the configured
| |
| metricsRecorder | back to summary |
|---|---|
| public final Supplier Return the configured metrics recorder
| |
| metricsRecorder | back to summary |
|---|---|
| protected void metricsRecorder(Supplier<? extends ChannelMetricsRecorder> metricsRecorderSupplier) Obtains immediately the
| |
| metricsRecorderInternal | back to summary |
|---|---|
| protected ChannelMetricsRecorder metricsRecorderInternal() | |
| options | back to summary |
|---|---|
| public final Map Return the read-only
| |
| updateMap | back to summary |
|---|---|
| protected static <K, V> Map Add or remove values to a map in an immutable way by returning a new map instance.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final TransportConfig | |
| pack-priv final ConnectionObserver | |
| pack-priv final boolean | |
| pack-priv final SocketAddress |
| Access | Constructor and Description |
|---|---|
| pack-priv | TransportChannelInitializer(TransportConfig config, ConnectionObserver connectionObserver, SocketAddress remoteAddress, boolean onServer)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | initChannel(Channel
the channel)Channel which was registered.Implements abstract io. Channel was registered.
|
| config | back to summary |
|---|---|
| pack-priv final TransportConfig config | |
| connectionObserver | back to summary |
|---|---|
| pack-priv final ConnectionObserver connectionObserver | |
| onServer | back to summary |
|---|---|
| pack-priv final boolean onServer | |
| remoteAddress | back to summary |
|---|---|
| pack-priv final SocketAddress remoteAddress | |
| TransportChannelInitializer | back to summary |
|---|---|
| pack-priv TransportChannelInitializer(TransportConfig config, ConnectionObserver connectionObserver, SocketAddress remoteAddress, boolean onServer) | |
| initChannel | back to summary |
|---|---|
| protected void initChannel(Channel channel) Implements abstract io. Doc from io. This method will be called once the | |