Home / Function/ testRejectedExecutionExceptionWhenTooManyTimeoutsAreAddedBackToBack() — netty Function Reference

testRejectedExecutionExceptionWhenTooManyTimeoutsAreAddedBackToBack() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/HashedWheelTimerTest.java lines 199–213

    @Test
    public void testRejectedExecutionExceptionWhenTooManyTimeoutsAreAddedBackToBack() {
        HashedWheelTimer timer = new HashedWheelTimer(Executors.defaultThreadFactory(), 100,
            TimeUnit.MILLISECONDS, 32, true, 2);
        timer.newTimeout(createNoOpTimerTask(), 5, TimeUnit.SECONDS);
        timer.newTimeout(createNoOpTimerTask(), 5, TimeUnit.SECONDS);
        try {
            timer.newTimeout(createNoOpTimerTask(), 1, TimeUnit.MILLISECONDS);
            fail("Timer allowed adding 3 timeouts when maxPendingTimeouts was 2");
        } catch (RejectedExecutionException e) {
            // Expected
        } finally {
            timer.stop();
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free