Package io.netty.util

Class DefaultAttributeMap

java.lang.Object
io.netty.util.DefaultAttributeMap
All Implemented Interfaces:
AttributeMap
Direct Known Subclasses:
AbstractChannel, AbstractHttp2StreamChannel

public class DefaultAttributeMap extends Object implements AttributeMap
Default AttributeMap implementation which not exibit any blocking behaviour on attribute lookup while using a copy-on-write approach on the modify path.
Attributes lookup and remove exibit O(logn) time worst-case complexity, hence attribute::set(null) is to be preferred to remove.