Class Node

java.lang.Object
org.glassfish.grizzly.http2.Node

public abstract class Node extends Object
N-ary tree node implementation to support HTTP/2 stream hierarchies.
  • Field Details

  • Constructor Details

    • Node

      protected Node(int id)
  • Method Details

    • exclusive

      protected void exclusive()
      Mark this Node as exclusive. Any siblings will be migrated to the children list.
    • addSibling

      protected void addSibling(Node sibling)
      Add a sibling to this Node.
    • addChild

      protected void addChild(Node n)
      Add a child to this Node.
    • addChild

      protected void addChild(Node nodeBeingAddedAsChild, boolean exclusive)
      Add a new child. If the child is marked as exclusive, any other children will be moved to become the children of this exclusive child.
    • detach

      protected Node detach(int id)
      Detail this Node from the tree maintaining any children.
    • remove

      protected Node remove(int id)
      Remove this Node from the tree. Any children will be moved up as a child of the remove Node's parent.
    • find

      protected Node find(int id)
      Top down search from this Node and any children (recursively) returning the node with a matching id.