Top Description Methods
io.netty.util

public Interface AttributeMap

Known Direct Implementers
io.netty.util.DefaultAttributeMap

Holds Attributes which can be accessed via AttributeKey. Implementations must be Thread-safe.

Method Summary

Modifier and TypeMethod and Description
public <T> Attribute<T>
attr(AttributeKey<T> key)

Get the Attribute for the given AttributeKey.

public <T> boolean
hasAttr(AttributeKey<T> key)

Returns true if and only if the given Attribute exists in this AttributeMap.

Method Detail

attrback to summary
public <T> Attribute<T> attr(AttributeKey<T> key)

Get the Attribute for the given AttributeKey. This method will never return null, but may return an Attribute which does not have a value set yet.

hasAttrback to summary
public <T> boolean hasAttr(AttributeKey<T> key)

Returns true if and only if the given Attribute exists in this AttributeMap.