Package io.netty.util
Interface AttributeMap
- All Known Subinterfaces:
Channel
,ChannelHandlerContext
,DatagramChannel
,DomainDatagramChannel
,DomainSocketChannel
,DuplexChannel
,Http2StreamChannel
,SctpChannel
,SctpServerChannel
,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
,NioDomainSocketChannel
,NioSctpChannel
,NioSctpServerChannel
,NioServerDomainSocketChannel
,NioServerSocketChannel
,NioSocketChannel
,OioByteStreamChannel
,OioDatagramChannel
,OioSctpChannel
,OioSctpServerChannel
,OioServerSocketChannel
,OioSocketChannel
public interface AttributeMap
Holds
Attribute
s which can be accessed via AttributeKey
.
Implementations must be Thread-safe.-
Method Summary
Modifier and TypeMethodDescription<T> Attribute
<T> attr
(AttributeKey<T> key) Get theAttribute
for the givenAttributeKey
.<T> boolean
hasAttr
(AttributeKey<T> key)
-
Method Details
-
attr
Get theAttribute
for the givenAttributeKey
. This method will never return null, but may return anAttribute
which does not have a value set yet. -
hasAttr
-