Home / Function/ testScheduleTimeoutShouldRunAfterDelay() — netty Function Reference

testScheduleTimeoutShouldRunAfterDelay() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 53–66

    @Test
    public void testScheduleTimeoutShouldRunAfterDelay() throws InterruptedException {
        final Timer timer = new HashedWheelTimer();
        final CountDownLatch barrier = new CountDownLatch(1);
        final Timeout timeout = timer.newTimeout(new TimerTask() {
            @Override
            public void run(Timeout timeout) throws Exception {
                barrier.countDown();
            }
        }, 2, TimeUnit.SECONDS);
        assertTrue(barrier.await(3, TimeUnit.SECONDS));
        assertTrue(timeout.isExpired(), "timer should expire");
        timer.stop();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does testScheduleTimeoutShouldRunAfterDelay() do?
testScheduleTimeoutShouldRunAfterDelay() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java.
Where is testScheduleTimeoutShouldRunAfterDelay() defined?
testScheduleTimeoutShouldRunAfterDelay() is defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java at line 53.
What does testScheduleTimeoutShouldRunAfterDelay() call?
testScheduleTimeoutShouldRunAfterDelay() 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