Home / Function/ permittingBlockingCallsInFastThreadLocalThreadSubclass() — netty Function Reference

permittingBlockingCallsInFastThreadLocalThreadSubclass() — netty Function Reference

Architecture documentation for the permittingBlockingCallsInFastThreadLocalThreadSubclass() function in NettyBlockHoundIntegrationTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d2ba84a8_eb53_37ed_60c3_d623374181d8["permittingBlockingCallsInFastThreadLocalThreadSubclass()"]
  746a8721_66e8_40dd_5dc1_a4c697fa84e4["NettyBlockHoundIntegrationTest"]
  d2ba84a8_eb53_37ed_60c3_d623374181d8 -->|defined in| 746a8721_66e8_40dd_5dc1_a4c697fa84e4
  style d2ba84a8_eb53_37ed_60c3_d623374181d8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java lines 190–205

    @Test
    void permittingBlockingCallsInFastThreadLocalThreadSubclass() throws Exception {
        final FutureTask<Void> future = new FutureTask<>(() -> {
            Thread.sleep(0);
            return null;
        });
        FastThreadLocalThread thread = new FastThreadLocalThread(future) {
            @Override
            public boolean permitBlockingCalls() {
                return true; // The Thread.sleep(0) call should not be flagged because we allow blocking calls.
            }
        };
        thread.start();
        future.get(5, TimeUnit.SECONDS);
        thread.join();
    }

Domain

Subdomains

Frequently Asked Questions

What does permittingBlockingCallsInFastThreadLocalThreadSubclass() do?
permittingBlockingCallsInFastThreadLocalThreadSubclass() is a function in the netty codebase, defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java.
Where is permittingBlockingCallsInFastThreadLocalThreadSubclass() defined?
permittingBlockingCallsInFastThreadLocalThreadSubclass() is defined in transport-blockhound-tests/src/test/java/io/netty/util/internal/NettyBlockHoundIntegrationTest.java at line 190.

Analyze Your Own Codebase

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

Try Supermodel Free