Home / Function/ doBeginRead() — netty Function Reference

doBeginRead() — netty Function Reference

Architecture documentation for the doBeginRead() function in AbstractIoUringChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0a6e9843_e51b_43db_7e40_36ac0122913f["doBeginRead()"]
  9a4cac3b_00a7_737a_49b1_42ae60ccb637["AbstractIoUringChannel"]
  0a6e9843_e51b_43db_7e40_36ac0122913f -->|defined in| 9a4cac3b_00a7_737a_49b1_42ae60ccb637
  504e72a6_d5e9_6b52_5a10_ab3991dcd667["isActive()"]
  0a6e9843_e51b_43db_7e40_36ac0122913f -->|calls| 504e72a6_d5e9_6b52_5a10_ab3991dcd667
  3695afb9_15b2_6326_e381_ade2ba128b2a["readComplete()"]
  0a6e9843_e51b_43db_7e40_36ac0122913f -->|calls| 3695afb9_15b2_6326_e381_ade2ba128b2a
  6537cba5_2de7_ad7b_7809_a43f80f2e6f3["doBeginReadNow()"]
  0a6e9843_e51b_43db_7e40_36ac0122913f -->|calls| 6537cba5_2de7_ad7b_7809_a43f80f2e6f3
  style 0a6e9843_e51b_43db_7e40_36ac0122913f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java lines 316–334

    @Override
    protected final void doBeginRead() {
        if (inputClosedSeenErrorOnRead) {
            // We did see an error while reading and so closed the input. Stop reading.
            return;
        }
        if (readPending) {
            // We already have a read pending.
            return;
        }
        readPending = true;
        if (inReadComplete || !isActive()) {
            // We are currently in the readComplete(...) callback which might issue more reads by itself.
            // If readComplete(...) will not issue more reads itself it will pick up the readPending flag, reset it and
            // call doBeginReadNow().
            return;
        }
        doBeginReadNow();
    }

Domain

Subdomains

Frequently Asked Questions

What does doBeginRead() do?
doBeginRead() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java.
Where is doBeginRead() defined?
doBeginRead() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringChannel.java at line 316.
What does doBeginRead() call?
doBeginRead() calls 3 function(s): doBeginReadNow, isActive, readComplete.

Analyze Your Own Codebase

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

Try Supermodel Free