Home / Function/ testTimerOverflowWheelLength() — netty Function Reference

testTimerOverflowWheelLength() — netty Function Reference

Architecture documentation for the testTimerOverflowWheelLength() function in HashedWheelTimerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4fb9102e_2e65_98d1_2694_2b29203c606c["testTimerOverflowWheelLength()"]
  00b49e45_9607_bed0_2d5f_fd3bdc9b959f["HashedWheelTimerTest"]
  4fb9102e_2e65_98d1_2694_2b29203c606c -->|defined in| 00b49e45_9607_bed0_2d5f_fd3bdc9b959f
  c46ba577_0225_1b73_1919_e2b7cb5a1767["TimerTask()"]
  4fb9102e_2e65_98d1_2694_2b29203c606c -->|calls| c46ba577_0225_1b73_1919_e2b7cb5a1767
  style 4fb9102e_2e65_98d1_2694_2b29203c606c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 122–139

    @Test
    @org.junit.jupiter.api.Timeout(value = 5000, unit = TimeUnit.MILLISECONDS)
    public void testTimerOverflowWheelLength() throws InterruptedException {
        final HashedWheelTimer timer = new HashedWheelTimer(
            Executors.defaultThreadFactory(), 100, TimeUnit.MILLISECONDS, 32);
        final CountDownLatch latch = new CountDownLatch(3);

        timer.newTimeout(new TimerTask() {
            @Override
            public void run(final Timeout timeout) throws Exception {
                timer.newTimeout(this, 100, TimeUnit.MILLISECONDS);
                latch.countDown();
            }
        }, 100, TimeUnit.MILLISECONDS);

        latch.await();
        assertFalse(timer.stop().isEmpty());
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testTimerOverflowWheelLength() do?
testTimerOverflowWheelLength() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java.
Where is testTimerOverflowWheelLength() defined?
testTimerOverflowWheelLength() is defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java at line 122.
What does testTimerOverflowWheelLength() call?
testTimerOverflowWheelLength() calls 1 function(s): TimerTask.

Analyze Your Own Codebase

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

Try Supermodel Free