Home / Function/ delay() — netty Function Reference

delay() — netty Function Reference

Architecture documentation for the delay() function in TrafficControl.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  8974480f_0e74_4ac7_eab7_2b2e4ca97cee["delay()"]
  795b1031_a0d2_a2ba_68c6_7259fb499d83["TrafficControl"]
  8974480f_0e74_4ac7_eab7_2b2e4ca97cee -->|defined in| 795b1031_a0d2_a2ba_68c6_7259fb499d83
  08762b1b_354b_c7f4_9219_8adff8ff4475["isAvailable()"]
  08762b1b_354b_c7f4_9219_8adff8ff4475 -->|calls| 8974480f_0e74_4ac7_eab7_2b2e4ca97cee
  style 8974480f_0e74_4ac7_eab7_2b2e4ca97cee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-udt/src/test/java/io/netty/test/udt/util/TrafficControl.java lines 66–77

    public static void delay(final int time) throws Exception {
        checkPositiveOrZero(time, "time");
        final int delay = time / 2;
        if (delay == 0) {
            UnitHelp.process(String.format(TC_RESET, "lo"));
        } else {
            /** extend packet buffer queue to avoid packet loss due to latency */
            final int limit = 1024 * 1024;
            UnitHelp.process(String.format(TC_RESET, "lo"));
            UnitHelp.process(String.format(TC_DELAY, "lo", delay, limit));
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does delay() do?
delay() is a function in the netty codebase, defined in transport-udt/src/test/java/io/netty/test/udt/util/TrafficControl.java.
Where is delay() defined?
delay() is defined in transport-udt/src/test/java/io/netty/test/udt/util/TrafficControl.java at line 66.
What calls delay()?
delay() is called by 1 function(s): isAvailable.

Analyze Your Own Codebase

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

Try Supermodel Free