-
- 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 AttributeMapHoldsAttributes 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 theAttributefor the givenAttributeKey.<T> booleanhasAttr(AttributeKey<T> key)
-
-
-
Method Detail
-
attr
<T> Attribute<T> attr(AttributeKey<T> key)
Get theAttributefor the givenAttributeKey. This method will never return null, but may return anAttributewhich does not have a value set yet.
-
hasAttr
<T> boolean hasAttr(AttributeKey<T> key)
-
-