-
- All Known Subinterfaces:
Channel
,DatagramChannel
,Http2StreamChannel
,ServerChannel
,ServerSocketChannel
,SocketChannel
,UnixChannel
- All Known Implementing Classes:
AbstractChannel
,AbstractNioByteChannel
,AbstractNioChannel
,AbstractNioMessageChannel
,AbstractServerChannel
,DefaultAttributeMap
,EmbeddedChannel
,EpollDatagramChannel
,EpollServerSocketChannel
,EpollSocketChannel
,KQueueDatagramChannel
,KQueueServerSocketChannel
,KQueueSocketChannel
,LocalChannel
,LocalServerChannel
,NioDatagramChannel
,NioServerSocketChannel
,NioSocketChannel
public interface AttributeMap
HoldsAttribute
s which can be accessed viaAttributeKey
. Implementations must be Thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Attribute<T>
attr(AttributeKey<T> key)
Get theAttribute
for the givenAttributeKey
.<T> boolean
hasAttr(AttributeKey<T> key)
-
-
-
Method Detail
-
attr
<T> Attribute<T> attr(AttributeKey<T> key)
Get theAttribute
for the givenAttributeKey
. This method will never return null, but may return anAttribute
which does not have a value set yet.
-
hasAttr
<T> boolean hasAttr(AttributeKey<T> key)
-
-