public class DefaultAttributeMap extends Object implements io.netty.util.AttributeMap
AttributeMap implementation which use simple synchronization per bucket to keep the memory
overhead as low as possible.
Note: This class has been forked from DefaultAttributeMap, with the following
changes:
attrs()| Constructor and Description |
|---|
DefaultAttributeMap() |
| Modifier and Type | Method and Description |
|---|---|
<T> io.netty.util.Attribute<T> |
attr(io.netty.util.AttributeKey<T> key) |
Iterator<io.netty.util.Attribute<?>> |
attrs()
Returns all
Attributes this map contains. |
<T> boolean |
hasAttr(io.netty.util.AttributeKey<T> key) |
String |
toString() |
public <T> io.netty.util.Attribute<T> attr(io.netty.util.AttributeKey<T> key)
attr in interface io.netty.util.AttributeMappublic <T> boolean hasAttr(io.netty.util.AttributeKey<T> key)
hasAttr in interface io.netty.util.AttributeMappublic Iterator<io.netty.util.Attribute<?>> attrs()
Attributes this map contains.Copyright © 2020 LeanCloud. All rights reserved.