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.util |
Utility classes used across multiple packages.
|
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 |
---|---|
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 or fail with an
IllegalArgumentException if a AttributeKey for the given 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> |
AttributeMap.attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<T> Attribute<T> |
DefaultAttributeMap.attr(AttributeKey<T> key) |
<T> boolean |
AttributeMap.hasAttr(AttributeKey<T> key)
|
<T> boolean |
DefaultAttributeMap.hasAttr(AttributeKey<T> key) |
Copyright © 2008–2015 The Netty Project. All rights reserved.