Home / Function/ testScheduleTimeoutShouldNotRunBeforeDelay() — netty Function Reference

testScheduleTimeoutShouldNotRunBeforeDelay() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 37–51

    @Test
    public void testScheduleTimeoutShouldNotRunBeforeDelay() 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 {
                fail("This should not have run");
                barrier.countDown();
            }
        }, 10, TimeUnit.SECONDS);
        assertFalse(barrier.await(3, TimeUnit.SECONDS));
        assertFalse(timeout.isExpired(), "timer should not expire");
        timer.stop();
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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