Package io.netty.util
Interface AttributeMap
-
- All Known Subinterfaces:
Channel
,ChannelHandlerContext
,DatagramChannel
,DomainDatagramChannel
,DomainSocketChannel
,DuplexChannel
,Http2StreamChannel
,ServerChannel
,ServerDomainSocketChannel
,ServerSocketChannel
,SocketChannel
,UnixChannel
- All Known Implementing Classes:
AbstractChannel
,AbstractChannelHandlerContext
,AbstractEpollChannel
,AbstractEpollServerChannel
,AbstractEpollStreamChannel
,AbstractHttp2StreamChannel
,AbstractKQueueChannel
,AbstractKQueueDatagramChannel
,AbstractKQueueServerChannel
,AbstractKQueueStreamChannel
,AbstractNioByteChannel
,AbstractNioChannel
,AbstractNioMessageChannel
,AbstractOioByteChannel
,AbstractOioChannel
,AbstractOioMessageChannel
,AbstractServerChannel
,CombinedChannelDuplexHandler.DelegatingChannelHandlerContext
,DefaultAttributeMap
,DefaultChannelHandlerContext
,DefaultChannelPipeline.HeadContext
,DefaultChannelPipeline.TailContext
,EmbeddedChannel
,EpollDatagramChannel
,EpollDomainDatagramChannel
,EpollDomainSocketChannel
,EpollServerDomainSocketChannel
,EpollServerSocketChannel
,EpollSocketChannel
,FailedChannel
,Http2MultiplexCodec.Http2MultiplexCodecStreamChannel
,Http2MultiplexHandler.Http2MultiplexHandlerStreamChannel
,KQueueDatagramChannel
,KQueueDomainDatagramChannel
,KQueueDomainSocketChannel
,KQueueServerDomainSocketChannel
,KQueueServerSocketChannel
,KQueueSocketChannel
,LocalChannel
,LocalServerChannel
,NioDatagramChannel
,NioServerSocketChannel
,NioSocketChannel
,OioByteStreamChannel
,OioDatagramChannel
,OioServerSocketChannel
,OioSocketChannel
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)
-
-