Uses of Class
io.netty.util.AttributeKey
Packages that use AttributeKey
Package
Description
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
Implementations and API for
Channel
pools.Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Handlers for sending and receiving HTTP/2 frames.
Encoder, decoder and different Message Types for MQTT.
Certificate validation using OCSP
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
Utility classes used across multiple packages.
-
Uses of AttributeKey in io.netty.bootstrap
Fields in io.netty.bootstrap with type parameters of type AttributeKeyModifier and TypeFieldDescriptionprivate final Map
<AttributeKey<?>, Object> AbstractBootstrap.attrs
private final Map
<AttributeKey<?>, Object> ServerBootstrap.childAttrs
Methods in io.netty.bootstrap that return types with arguments of type AttributeKeyModifier and TypeMethodDescription(package private) final Map
<AttributeKey<?>, Object> AbstractBootstrap.attrs()
final Map
<AttributeKey<?>, Object> AbstractBootstrapConfig.attrs()
Returns a copy of the configured attributes.(package private) final Map
<AttributeKey<?>, Object> AbstractBootstrap.attrs0()
(package private) final Map
<AttributeKey<?>, Object> ServerBootstrap.childAttrs()
Map
<AttributeKey<?>, Object> ServerBootstrapConfig.childAttrs()
Returns a copy of the configured attributes which will be used for the child channels.(package private) final Map.Entry<AttributeKey<?>,
Object>[] AbstractBootstrap.newAttributesArray()
(package private) static Map.Entry<AttributeKey<?>,
Object>[] AbstractBootstrap.newAttributesArray
(Map<AttributeKey<?>, Object> attributes) Methods in io.netty.bootstrap with parameters of type AttributeKeyModifier and TypeMethodDescription<T> B
AbstractBootstrap.attr
(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdChannel
.<T> ServerBootstrap
ServerBootstrap.childAttr
(AttributeKey<T> childKey, T value) Set the specificAttributeKey
with the given value on every childChannel
.Method parameters in io.netty.bootstrap with type arguments of type AttributeKeyModifier and TypeMethodDescription(package private) static Map.Entry<AttributeKey<?>,
Object>[] AbstractBootstrap.newAttributesArray
(Map<AttributeKey<?>, Object> attributes) -
Uses of AttributeKey in io.netty.channel
Methods in io.netty.channel with parameters of type AttributeKeyModifier and TypeMethodDescription<T> Attribute
<T> AbstractChannelHandlerContext.attr
(AttributeKey<T> key) <T> Attribute
<T> ChannelHandlerContext.attr
(AttributeKey<T> key) Deprecated.<T> Attribute
<T> CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.attr
(AttributeKey<T> key) <T> boolean
AbstractChannelHandlerContext.hasAttr
(AttributeKey<T> key) <T> boolean
ChannelHandlerContext.hasAttr
(AttributeKey<T> key) Deprecated.<T> boolean
CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.hasAttr
(AttributeKey<T> key) -
Uses of AttributeKey in io.netty.channel.pool
Fields in io.netty.channel.pool declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<SimpleChannelPool> SimpleChannelPool.POOL_KEY
-
Uses of AttributeKey in io.netty.handler.codec.http.websocketx
Fields in io.netty.handler.codec.http.websocketx declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<WebSocketServerHandshaker> WebSocketServerProtocolHandler.HANDSHAKER_ATTR_KEY
-
Uses of AttributeKey in io.netty.handler.codec.http2
Fields in io.netty.handler.codec.http2 declared as AttributeKeyModifier and TypeFieldDescriptionprivate static final AttributeKey
<HttpScheme> Http2StreamFrameToHttpObjectCodec.SCHEME_ATTR_KEY
Fields in io.netty.handler.codec.http2 with type parameters of type AttributeKeyModifier and TypeFieldDescriptionprivate final Map
<AttributeKey<?>, Object> Http2StreamChannelBootstrap.attrs
Methods in io.netty.handler.codec.http2 with parameters of type AttributeKeyModifier and TypeMethodDescriptionHttp2StreamChannelBootstrap.attr
(AttributeKey<T> key, T value) Allow to specify an initial attribute of the newly createdHttp2StreamChannel
. -
Uses of AttributeKey in io.netty.handler.codec.mqtt
Fields in io.netty.handler.codec.mqtt declared as AttributeKeyModifier and TypeFieldDescription(package private) static final AttributeKey
<MqttVersion> MqttCodecUtil.MQTT_VERSION_KEY
-
Uses of AttributeKey in io.netty.handler.ssl.ocsp
Fields in io.netty.handler.ssl.ocsp declared as AttributeKeyModifier and TypeFieldDescriptionstatic final AttributeKey
<Boolean> OcspServerCertificateValidator.OCSP_PIPELINE_ATTRIBUTE
An attribute used to mark all channels created by theOcspServerCertificateValidator
. -
Uses of AttributeKey in io.netty.handler.traffic
Fields in io.netty.handler.traffic declared as AttributeKeyModifier and TypeFieldDescription(package private) static final AttributeKey
<Boolean> AbstractTrafficShapingHandler.READ_SUSPENDED
(package private) static final AttributeKey
<Runnable> AbstractTrafficShapingHandler.REOPEN_TASK
-
Uses of AttributeKey in io.netty.resolver.dns
Fields in io.netty.resolver.dns declared as AttributeKeyModifier and TypeFieldDescriptionstatic final AttributeKey
<Boolean> DnsNameResolver.DNS_PIPELINE_ATTRIBUTE
An attribute used to mark all channels created by theDnsNameResolver
. -
Uses of AttributeKey in io.netty.util
Fields in io.netty.util declared as AttributeKeyModifier and TypeFieldDescriptionprivate final AttributeKey
<T> DefaultAttributeMap.DefaultAttribute.key
Fields in io.netty.util with type parameters of type AttributeKeyModifier and TypeFieldDescriptionprivate static final ConstantPool
<AttributeKey<Object>> AttributeKey.pool
Methods in io.netty.util that return AttributeKeyModifier and TypeMethodDescriptionAttribute.key()
Returns the key of this attribute.DefaultAttributeMap.DefaultAttribute.key()
static <T> AttributeKey
<T> AttributeKey.newInstance
(String name) Creates a newAttributeKey
for the givenname
or fail with anIllegalArgumentException
if aAttributeKey
for the givenname
exists.static <T> AttributeKey
<T> static <T> AttributeKey
<T> Returns the singleton instance of theAttributeKey
which has the specifiedname
.Methods in io.netty.util with parameters of type AttributeKeyModifier and TypeMethodDescription<T> Attribute
<T> AttributeMap.attr
(AttributeKey<T> key) Get theAttribute
for the givenAttributeKey
.<T> Attribute
<T> DefaultAttributeMap.attr
(AttributeKey<T> key) <T> boolean
AttributeMap.hasAttr
(AttributeKey<T> key) <T> boolean
DefaultAttributeMap.hasAttr
(AttributeKey<T> key) private <T> void
DefaultAttributeMap.removeAttributeIfMatch
(AttributeKey<T> key, DefaultAttributeMap.DefaultAttribute<T> value) private static int
DefaultAttributeMap.searchAttributeByKey
(DefaultAttributeMap.DefaultAttribute[] sortedAttributes, AttributeKey<?> key) Similarly toArrays::binarySearch
it perform a binary search optimized for this use case, in order to save polymorphic calls (on comparator side) and unnecessary class checks.Constructors in io.netty.util with parameters of type AttributeKeyModifierConstructorDescription(package private)
DefaultAttribute
(DefaultAttributeMap attributeMap, AttributeKey<T> key)
AttributeMap.attr(AttributeKey)