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.handler.codec.http2 |
Handlers for sending and receiving HTTP/2 frames.
|
io.netty.util |
Utility classes used across multiple packages.
|
Modifier and Type | Method and Description |
---|---|
Map<AttributeKey<?>,Object> |
AbstractBootstrapConfig.attrs()
Returns a copy of the configured attributes.
|
Map<AttributeKey<?>,Object> |
ServerBootstrapConfig.childAttrs()
Returns a copy of the configured attributes which will be used for the child channels.
|
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> boolean |
ChannelHandlerContext.hasAttr(AttributeKey<T> key)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Map<AttributeKey<?>,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 |
---|---|
AttributeKey<T> |
Attribute.key()
Returns the key of this attribute.
|
static <T> AttributeKey<T> |
AttributeKey.newInstance(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(Class<?> firstNameComponent,
String secondNameComponent) |
static <T> AttributeKey<T> |
AttributeKey.valueOf(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 . |
Copyright © 2008–2017 The Netty Project. All rights reserved.