public class DefaultAttributeMap extends Object implements AttributeMap
AttributeMap implementation which use simple synchronization per bucket to keep the memory overhead
 as low as possible.| Constructor and Description | 
|---|
| DefaultAttributeMap() | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> Attribute<T> | attr(AttributeKey<T> key)Get the  Attributefor the givenAttributeKey. | 
| <T> boolean | hasAttr(AttributeKey<T> key) | 
public <T> Attribute<T> attr(AttributeKey<T> key)
AttributeMapAttribute for the given AttributeKey. This method will never return null, but may return
 an Attribute which does not have a value set yet.attr in interface AttributeMappublic <T> boolean hasAttr(AttributeKey<T> key)
AttributeMaphasAttr in interface AttributeMapCopyright © 2008–2015 The Netty Project. All rights reserved.