Home / Function/ run() — netty Function Reference

run() — netty Function Reference

Architecture documentation for the run() function in MultiThreadIoEventLoopGroupTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9830fcb8_e5b5_cc90_d277_35c9a3443446["run()"]
  58be7942_44d1_cd6e_f39f_cad5938b2ce3["TestableIoEventLoop"]
  9830fcb8_e5b5_cc90_d277_35c9a3443446 -->|defined in| 58be7942_44d1_cd6e_f39f_cad5938b2ce3
  bf26b1d1_cf9e_11e8_61db_9c1f32fbbcbf["IoHandler()"]
  bf26b1d1_cf9e_11e8_61db_9c1f32fbbcbf -->|calls| 9830fcb8_e5b5_cc90_d277_35c9a3443446
  style 9830fcb8_e5b5_cc90_d277_35c9a3443446 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java lines 104–121

        @Override
        protected void run() {
            do {
                if (simulateWorkload.get()) {
                    try {
                        Thread.sleep(100);
                    } catch (InterruptedException e) {
                        Thread.currentThread().interrupt();
                    }
                    reportActiveIoTime(TimeUnit.MILLISECONDS.toNanos(100));
                } else {
                    Runnable task = takeTask();
                    if (task != null) {
                        safeExecute(task);
                    }
                }
            } while (!confirmShutdown() && !canSuspend());
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does run() do?
run() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java.
Where is run() defined?
run() is defined in transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java at line 104.
What calls run()?
run() is called by 1 function(s): IoHandler.

Analyze Your Own Codebase

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

Try Supermodel Free