Uses of Class
io.netty.util.AttributeKey
-
Packages that use AttributeKey Package Description io.netty.bootstrap The helper classes with fluent API which enable an easy implementation of typical client side and server side channel initialization.io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.channel.pool Implementations and API forChannel
pools.io.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty.handler.codec.mqtt Encoder, decoder and different Message Types for MQTT.io.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics.io.netty.util Utility classes used across multiple packages. -
-
Uses of AttributeKey in io.netty.bootstrap
Fields in io.netty.bootstrap with type parameters of type AttributeKey Modifier and Type Field Description private java.util.Map<AttributeKey<?>,java.lang.Object>
AbstractBootstrap. attrs
private java.util.Map<AttributeKey<?>,java.lang.Object>
ServerBootstrap. childAttrs
Methods in io.netty.bootstrap that return types with arguments of type AttributeKey Modifier and Type Method Description (package private) java.util.Map<AttributeKey<?>,java.lang.Object>
AbstractBootstrap. attrs()
java.util.Map<AttributeKey<?>,java.lang.Object>
AbstractBootstrapConfig. attrs()
Returns a copy of the configured attributes.(package private) java.util.Map<AttributeKey<?>,java.lang.Object>
AbstractBootstrap. attrs0()
(package private) java.util.Map<AttributeKey<?>,java.lang.Object>
ServerBootstrap. childAttrs()
java.util.Map<AttributeKey<?>,java.lang.Object>
ServerBootstrapConfig. childAttrs()
Returns a copy of the configured attributes which will be used for the child channels.(package private) java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[]
AbstractBootstrap. newAttributesArray()
(package private) static java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[]
AbstractBootstrap. newAttributesArray(java.util.Map<AttributeKey<?>,java.lang.Object> attributes)
Methods in io.netty.bootstrap with parameters of type AttributeKey Modifier and Type Method Description <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 AttributeKey Modifier and Type Method Description (package private) static java.util.Map.Entry<AttributeKey<?>,java.lang.Object>[]
AbstractBootstrap. newAttributesArray(java.util.Map<AttributeKey<?>,java.lang.Object> attributes)
-
Uses of AttributeKey in io.netty.channel
Methods in io.netty.channel with parameters of type AttributeKey Modifier and Type Method Description <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 AttributeKey Modifier and Type Field Description private static 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 AttributeKey Modifier and Type Field Description private static AttributeKey<WebSocketServerHandshaker>
WebSocketServerProtocolHandler. HANDSHAKER_ATTR_KEY
-
Uses of AttributeKey in io.netty.handler.codec.http2
Fields in io.netty.handler.codec.http2 declared as AttributeKey Modifier and Type Field Description private static AttributeKey<HttpScheme>
Http2StreamFrameToHttpObjectCodec. SCHEME_ATTR_KEY
Fields in io.netty.handler.codec.http2 with type parameters of type AttributeKey Modifier and Type Field Description private java.util.Map<AttributeKey<?>,java.lang.Object>
Http2StreamChannelBootstrap. attrs
Methods in io.netty.handler.codec.http2 with parameters of type AttributeKey Modifier and Type Method Description <T> Http2StreamChannelBootstrap
Http2StreamChannelBootstrap. 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 AttributeKey Modifier and Type Field Description (package private) static AttributeKey<MqttVersion>
MqttCodecUtil. MQTT_VERSION_KEY
-
Uses of AttributeKey in io.netty.handler.traffic
Fields in io.netty.handler.traffic declared as AttributeKey Modifier and Type Field Description (package private) static AttributeKey<java.lang.Boolean>
AbstractTrafficShapingHandler. READ_SUSPENDED
(package private) static AttributeKey<java.lang.Runnable>
AbstractTrafficShapingHandler. REOPEN_TASK
-
Uses of AttributeKey in io.netty.util
Fields in io.netty.util declared as AttributeKey Modifier and Type Field Description private AttributeKey<T>
DefaultAttributeMap.DefaultAttribute. key
Fields in io.netty.util with type parameters of type AttributeKey Modifier and Type Field Description private static ConstantPool<AttributeKey<java.lang.Object>>
AttributeKey. pool
Methods in io.netty.util that return AttributeKey Modifier and Type Method Description AttributeKey<T>
Attribute. key()
Returns the key of this attribute.AttributeKey<T>
DefaultAttributeMap.DefaultAttribute. key()
static <T> AttributeKey<T>
AttributeKey. newInstance(java.lang.String name)
Creates a newAttributeKey
for the givenname
or fail with anIllegalArgumentException
if aAttributeKey
for the givenname
exists.static <T> AttributeKey<T>
AttributeKey. valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
static <T> AttributeKey<T>
AttributeKey. valueOf(java.lang.String name)
Returns the singleton instance of theAttributeKey
which has the specifiedname
.Methods in io.netty.util with parameters of type AttributeKey Modifier and Type Method Description <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 AttributeKey Constructor Description DefaultAttribute(DefaultAttributeMap attributeMap, AttributeKey<T> key)
-