Home / Function/ setMaxDeviation() — netty Function Reference

setMaxDeviation() — netty Function Reference

Architecture documentation for the setMaxDeviation() function in GlobalChannelTrafficShapingHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  cf8addf9_b3f8_ca59_a053_79f7174422d0["setMaxDeviation()"]
  70857fc2_a134_e299_7b48_1738d53c0016["GlobalChannelTrafficShapingHandler"]
  cf8addf9_b3f8_ca59_a053_79f7174422d0 -->|defined in| 70857fc2_a134_e299_7b48_1738d53c0016
  87612d77_4348_8664_2730_9c2305a55ccb["createGlobalTrafficCounter()"]
  87612d77_4348_8664_2730_9c2305a55ccb -->|calls| cf8addf9_b3f8_ca59_a053_79f7174422d0
  style cf8addf9_b3f8_ca59_a053_79f7174422d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java lines 300–311

    public void setMaxDeviation(float maxDeviation, float slowDownFactor, float accelerationFactor) {
        if (maxDeviation > MAX_DEVIATION) {
            throw new IllegalArgumentException("maxDeviation must be <= " + MAX_DEVIATION);
        }
        checkPositiveOrZero(slowDownFactor, "slowDownFactor");
        if (accelerationFactor > 0) {
            throw new IllegalArgumentException("accelerationFactor must be <= 0");
        }
        this.maxDeviation = maxDeviation;
        this.accelerationFactor = 1 + accelerationFactor;
        this.slowDownFactor = 1 + slowDownFactor;
    }

Domain

Subdomains

Frequently Asked Questions

What does setMaxDeviation() do?
setMaxDeviation() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java.
Where is setMaxDeviation() defined?
setMaxDeviation() is defined in handler/src/main/java/io/netty/handler/traffic/GlobalChannelTrafficShapingHandler.java at line 300.
What calls setMaxDeviation()?
setMaxDeviation() is called by 1 function(s): createGlobalTrafficCounter.

Analyze Your Own Codebase

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

Try Supermodel Free