Home / Function/ waitForData() — netty Function Reference

waitForData() — netty Function Reference

Architecture documentation for the waitForData() function in QuicChannelEchoTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  b05ab098_a6d5_f522_4cfc_e7b527ff5c1b["waitForData()"]
  949dbf36_222b_a1d5_95aa_68ae528fcaf5["QuicChannelEchoTest"]
  b05ab098_a6d5_f522_4cfc_e7b527ff5c1b -->|defined in| 949dbf36_222b_a1d5_95aa_68ae528fcaf5
  b6b62dd4_732e_55a3_c880_96407c90f51b["testEchoStartedFromServer()"]
  b6b62dd4_732e_55a3_c880_96407c90f51b -->|calls| b05ab098_a6d5_f522_4cfc_e7b527ff5c1b
  517fed06_cd16_bd40_97ea_e48339ad0706["testEchoStartedFromClient()"]
  517fed06_cd16_bd40_97ea_e48339ad0706 -->|calls| b05ab098_a6d5_f522_4cfc_e7b527ff5c1b
  style b05ab098_a6d5_f522_4cfc_e7b527ff5c1b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java lines 333–348

    private static void waitForData(EchoHandler h1, EchoHandler h2) {
        while (h1.counter < data.length) {
            if (h2.exception.get() != null) {
                break;
            }
            if (h1.exception.get() != null) {
                break;
            }

            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                // Ignore.
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does waitForData() do?
waitForData() is a function in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java.
Where is waitForData() defined?
waitForData() is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicChannelEchoTest.java at line 333.
What calls waitForData()?
waitForData() is called by 2 function(s): testEchoStartedFromClient, testEchoStartedFromServer.

Analyze Your Own Codebase

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

Try Supermodel Free