GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • Use
  • Tree
  • Deprecated
  • Index
  • Search
  • Help
  • io.netty.util
  • DefaultAttributeMap

This view

  • Original page
  • New address

GeezerVison is showing netty.io — DefaultAttributeMap (Netty API Reference (4.1.141.Final))

Class DefaultAttributeMap

java.lang.Object
io.netty.util.DefaultAttributeMap
All Implemented Interfaces:
AttributeMap
Direct Known Subclasses:
AbstractChannel

public class DefaultAttributeMap extends Object implements AttributeMap
Default AttributeMap implementation which not exibit any blocking behaviour on attribute lookup while using a copy-on-write approach on the modify path.
Attributes lookup and remove exibit O(logn) time worst-case complexity, hence attribute::set(null) is to be preferred to remove.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultAttributeMap()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Attribute<T>
    attr(AttributeKey<T> key)
    Get the Attribute for the given AttributeKey.
    <T> boolean
    hasAttr(AttributeKey<T> key)
    Returns true if and only if the given Attribute exists in this AttributeMap.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultAttributeMap

      public DefaultAttributeMap()
  • Method Details

    • attr

      public <T> Attribute<T> attr(AttributeKey<T> key)
      Description copied from interface: AttributeMap
      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.
      Specified by:
      attr in interface AttributeMap
    • hasAttr

      public <T> boolean hasAttr(AttributeKey<T> key)
      Description copied from interface: AttributeMap
      Returns true if and only if the given Attribute exists in this AttributeMap.
      Specified by:
      hasAttr in interface AttributeMap
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.