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 for
Channel 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.traffic |
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
|
io.netty.util |
Utility classes used across multiple packages.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<AttributeKey<?>,java.lang.Object> |
AbstractBootstrap.attrs |
private java.util.Map<AttributeKey<?>,java.lang.Object> |
ServerBootstrap.childAttrs |
Modifier and Type | Method and Description |
---|---|
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.attrs() |
(package private) java.util.Map<AttributeKey<?>,java.lang.Object> |
AbstractBootstrap.attrs0() |
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<AttributeKey<?>,java.lang.Object> |
ServerBootstrap.childAttrs() |
Modifier and Type | Method and Description |
---|---|
<T> B |
AbstractBootstrap.attr(AttributeKey<T> key,
T value)
Allow to specify an initial attribute of the newly created
Channel . |
<T> ServerBootstrap |
ServerBootstrap.childAttr(AttributeKey<T> childKey,
T value)
Set the specific
AttributeKey with the given value on every child Channel . |
Modifier and Type | Method and Description |
---|---|
<T> Attribute<T> |
ChannelHandlerContext.attr(AttributeKey<T> key)
Deprecated.
|
<T> Attribute<T> |
AbstractChannelHandlerContext.attr(AttributeKey<T> key) |
<T> Attribute<T> |
CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.attr(AttributeKey<T> key) |
<T> boolean |
ChannelHandlerContext.hasAttr(AttributeKey<T> key)
Deprecated.
|
<T> boolean |
AbstractChannelHandlerContext.hasAttr(AttributeKey<T> key) |
<T> boolean |
CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.hasAttr(AttributeKey<T> key) |
Modifier and Type | Field and Description |
---|---|
private static AttributeKey<SimpleChannelPool> |
SimpleChannelPool.POOL_KEY |
Modifier and Type | Field and Description |
---|---|
private static AttributeKey<WebSocketServerHandshaker> |
WebSocketServerProtocolHandler.HANDSHAKER_ATTR_KEY |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<AttributeKey<?>,java.lang.Object> |
Http2StreamChannelBootstrap.attributes |
Modifier and Type | Method and Description |
---|---|
java.util.Map<AttributeKey<?>,java.lang.Object> |
Http2StreamChannelBootstrap.attributes() |
Modifier and Type | Method and Description |
---|---|
<T> Http2StreamChannelBootstrap |
Http2StreamChannelBootstrap.attr(AttributeKey<T> key,
T value)
Specify attributes with an initial value to be set on newly created channels.
|
Modifier and Type | Method and Description |
---|---|
(package private) ChannelFuture |
Http2MultiplexCodec.createStreamChannel(Channel parentChannel,
EventLoopGroup group,
ChannelHandler handler,
java.util.Map<ChannelOption<?>,java.lang.Object> options,
java.util.Map<AttributeKey<?>,java.lang.Object> attrs,
int streamId) |
private static void |
Http2MultiplexCodec.initAttrs(Channel channel,
java.util.Map<AttributeKey<?>,java.lang.Object> attrs) |
Modifier and Type | Field and Description |
---|---|
(package private) static AttributeKey<java.lang.Boolean> |
AbstractTrafficShapingHandler.READ_SUSPENDED |
(package private) static AttributeKey<java.lang.Runnable> |
AbstractTrafficShapingHandler.REOPEN_TASK |
Modifier and Type | Field and Description |
---|---|
private AttributeKey<T> |
DefaultAttributeMap.DefaultAttribute.key |
Modifier and Type | Field and Description |
---|---|
private static ConstantPool<AttributeKey<java.lang.Object>> |
AttributeKey.pool |
Modifier and Type | Method and Description |
---|---|
AttributeKey<T> |
DefaultAttributeMap.DefaultAttribute.key() |
AttributeKey<T> |
Attribute.key()
Returns the key of this attribute.
|
static <T> AttributeKey<T> |
AttributeKey.newInstance(java.lang.String name)
Creates a new
AttributeKey for the given name or fail with an
IllegalArgumentException if a AttributeKey for the given name 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 the
AttributeKey which has the specified name . |
Modifier and Type | Method and Description |
---|---|
<T> Attribute<T> |
DefaultAttributeMap.attr(AttributeKey<T> key) |
<T> Attribute<T> |
AttributeMap.attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<T> boolean |
DefaultAttributeMap.hasAttr(AttributeKey<T> key) |
<T> boolean |
AttributeMap.hasAttr(AttributeKey<T> key)
Returns true if and only if the given
Attribute exists in this AttributeMap . |
private static int |
DefaultAttributeMap.index(AttributeKey<?> key) |
Constructor and Description |
---|
DefaultAttribute(DefaultAttributeMap.DefaultAttribute<?> head,
AttributeKey<T> key) |