Home / Type/ RunMode Type — netty Architecture

RunMode Type — netty Architecture

Architecture documentation for the RunMode type/interface in ManualIoEventLoopTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ab0f51f0_9753_ee21_7cac_d9f1e5542aa1["RunMode"]
  00750916_11ec_74e4_0199_6353ea56d6f2["ManualIoEventLoopTest.java"]
  ab0f51f0_9753_ee21_7cac_d9f1e5542aa1 -->|defined in| 00750916_11ec_74e4_0199_6353ea56d6f2
  style ab0f51f0_9753_ee21_7cac_d9f1e5542aa1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java lines 282–299

    private enum RunMode {
        Now,
        Wait,
        NonIoNow;

        public int runWith(ManualIoEventLoop el, long timeoutNs) {
            switch (this) {
                case Now:
                    return el.runNow(timeoutNs);
                case Wait:
                    return el.run(TimeUnit.HOURS.toNanos(1), timeoutNs);
                case NonIoNow:
                    return el.runNonBlockingTasks(timeoutNs);
                default:
                    throw new IllegalStateException("Unknown run mode: " + this);
            }
        }
    }

Frequently Asked Questions

What is the RunMode type?
RunMode is a type/interface in the netty codebase, defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java.
Where is RunMode defined?
RunMode is defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java at line 282.

Analyze Your Own Codebase

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

Try Supermodel Free