Home / Function/ reportPendingTimeouts() — netty Function Reference

reportPendingTimeouts() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 253–268

    @Test()
    public void reportPendingTimeouts() throws InterruptedException {
        final CountDownLatch latch = new CountDownLatch(1);
        final HashedWheelTimer timer = new HashedWheelTimer();
        final Timeout t1 = timer.newTimeout(createNoOpTimerTask(), 100, TimeUnit.MINUTES);
        final Timeout t2 = timer.newTimeout(createNoOpTimerTask(), 100, TimeUnit.MINUTES);
        timer.newTimeout(createCountDownLatchTimerTask(latch), 90, TimeUnit.MILLISECONDS);

        assertEquals(3, timer.pendingTimeouts());
        t1.cancel();
        t2.cancel();
        latch.await();

        assertEquals(0, timer.pendingTimeouts());
        timer.stop();
    }

Domain

Subdomains

Frequently Asked Questions

What does reportPendingTimeouts() do?
reportPendingTimeouts() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java.
Where is reportPendingTimeouts() defined?
reportPendingTimeouts() is defined in common/src/test/java/io/netty/util/HashedWheelTimerTest.java at line 253.

Analyze Your Own Codebase

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

Try Supermodel Free