Home / Class/ PropertyKeyRegistry Class — netty Architecture

PropertyKeyRegistry Class — netty Architecture

Architecture documentation for the PropertyKeyRegistry class in DefaultHttp2Connection.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  76b4578a_b415_c7ba_9a72_bd1f8c5102a7["PropertyKeyRegistry"]
  c1b91a38_3d50_98cc_116d_1d9e5bc49432["DefaultHttp2Connection.java"]
  76b4578a_b415_c7ba_9a72_bd1f8c5102a7 -->|defined in| c1b91a38_3d50_98cc_116d_1d9e5bc49432
  55c45431_ef31_fff7_ad71_a1bfeca0cb30["DefaultPropertyKey()"]
  76b4578a_b415_c7ba_9a72_bd1f8c5102a7 -->|method| 55c45431_ef31_fff7_ad71_a1bfeca0cb30
  b4f137d1_9d69_9f36_f01a_901a4f278bc9["size()"]
  76b4578a_b415_c7ba_9a72_bd1f8c5102a7 -->|method| b4f137d1_9d69_9f36_f01a_901a4f278bc9

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java lines 1095–1115

    private final class PropertyKeyRegistry {
        /**
         * Initial size of 4 because the default configuration currently has 3 listeners
         * (local/remote flow controller and {@link StreamByteDistributor}) and we leave room for 1 extra.
         * We could be more aggressive but the ArrayList resize will double the size if we are too small.
         */
        final List<DefaultPropertyKey> keys = new ArrayList<DefaultPropertyKey>(4);

        /**
         * Registers a new property key.
         */
        DefaultPropertyKey newKey() {
            DefaultPropertyKey key = new DefaultPropertyKey(keys.size());
            keys.add(key);
            return key;
        }

        int size() {
            return keys.size();
        }
    }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free