public interface AttributeMap
Attribute ,可通过AttributeKey访问。
实现必须是线程安全的。
| Modifier and Type | Method and Description |
|---|---|
<T> Attribute<T> |
attr(AttributeKey<T> key)
获取 Attribute对于给定AttributeKey 。
|
<T> boolean |
hasAttr(AttributeKey<T> key)
返回true当且仅当给定 Attribute存在于这个AttributeMap 。
|
<T> Attribute<T> attr(AttributeKey<T> key)
AttributeKey的Attribute 。
此方法永远不会返回null,但可能会返回尚未设置值的Attribute 。
<T> boolean hasAttr(AttributeKey<T> key)
Attribute exists in this
AttributeMap.
Copyright © 2008–2018 The Netty Project. All rights reserved.