public interface AttributeMap
Attribute
s which can be accessed via AttributeKey
.
Implementations must be Thread-safe.Modifier and Type | Method and Description |
---|---|
<T> Attribute<T> |
attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<T> boolean |
hasAttr(AttributeKey<T> key)
|
<T> Attribute<T> attr(AttributeKey<T> key)
Attribute
for the given AttributeKey
. This method will never return null, but may return
an Attribute
which does not have a value set yet.<T> boolean hasAttr(AttributeKey<T> key)
Copyright © 2008–2024 The Netty Project. All rights reserved.