Home / Function/ enforceConstraint() — netty Function Reference

enforceConstraint() — netty Function Reference

Architecture documentation for the enforceConstraint() function in AbstractHttp2ConnectionHandlerBuilder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  52134489_8792_266f_0c26_0e1c3e5b23c0["enforceConstraint()"]
  f6b4a99f_582b_edeb_b407_f81f8370c301["AbstractHttp2ConnectionHandlerBuilder"]
  52134489_8792_266f_0c26_0e1c3e5b23c0 -->|defined in| f6b4a99f_582b_edeb_b407_f81f8370c301
  87f64823_b9b5_4bd3_067e_cba27a22acfa["B()"]
  87f64823_b9b5_4bd3_067e_cba27a22acfa -->|calls| 52134489_8792_266f_0c26_0e1c3e5b23c0
  5475ba28_46f9_67d3_6200_ef075b57c5ef["enforceNonCodecConstraints()"]
  5475ba28_46f9_67d3_6200_ef075b57c5ef -->|calls| 52134489_8792_266f_0c26_0e1c3e5b23c0
  style 52134489_8792_266f_0c26_0e1c3e5b23c0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2ConnectionHandlerBuilder.java lines 683–688

    private static void enforceConstraint(String methodName, String rejectorName, Object value) {
        if (value != null) {
            throw new IllegalStateException(
                    methodName + "() cannot be called because " + rejectorName + "() has been called already.");
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does enforceConstraint() do?
enforceConstraint() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2ConnectionHandlerBuilder.java.
Where is enforceConstraint() defined?
enforceConstraint() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2ConnectionHandlerBuilder.java at line 683.
What calls enforceConstraint()?
enforceConstraint() is called by 2 function(s): B, enforceNonCodecConstraints.

Analyze Your Own Codebase

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

Try Supermodel Free