Home / Class/ NameValueEntry Class — netty Architecture

NameValueEntry Class — netty Architecture

Architecture documentation for the NameValueEntry class in HpackEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  456dd10a_5c81_8071_9e9e_43428e37167f["NameValueEntry"]
  b04c7124_b021_2376_03d8_147c4787bd78["HpackEncoder.java"]
  456dd10a_5c81_8071_9e9e_43428e37167f -->|defined in| b04c7124_b021_2376_03d8_147c4787bd78
  8583372d_d8bc_c03e_a167_6370300612a1["NameValueEntry()"]
  456dd10a_5c81_8071_9e9e_43428e37167f -->|method| 8583372d_d8bc_c03e_a167_6370300612a1
  a453b5e4_341f_8237_96c5_7b0f3e755daa["unlink()"]
  456dd10a_5c81_8071_9e9e_43428e37167f -->|method| a453b5e4_341f_8237_96c5_7b0f3e755daa

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java lines 531–554

    private static final class NameValueEntry extends HpackHeaderField {
        // This field comprises the linked list used for implementing the eviction policy.
        NameValueEntry after;

        NameValueEntry next;

        // hash of both name and value
        final int hash;

        // This is used to compute the index in the dynamic table.
        final int counter;

        NameValueEntry(int hash, CharSequence name, CharSequence value, int counter, NameValueEntry next) {
            super(name, value);
            this.next = next;
            this.hash = hash;
            this.counter = counter;
        }

        void unlink() {
            after = null; // null references to prevent nepotism in generational GC.
            next = null;
        }
    }

Frequently Asked Questions

What is the NameValueEntry class?
NameValueEntry is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java.
Where is NameValueEntry defined?
NameValueEntry is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/HpackEncoder.java at line 531.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free