Home / Function/ cancelOutstandingReads() — netty Function Reference

cancelOutstandingReads() — netty Function Reference

Architecture documentation for the cancelOutstandingReads() function in AbstractIoUringStreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0f0fefaa_d0f1_e009_634f_ec2f718aca13["cancelOutstandingReads()"]
  e0084bc2_202c_2cf9_b167_f5ee8ec96f9b["AbstractIoUringStreamChannel"]
  0f0fefaa_d0f1_e009_634f_ec2f718aca13 -->|defined in| e0084bc2_202c_2cf9_b167_f5ee8ec96f9b
  style 0f0fefaa_d0f1_e009_634f_ec2f718aca13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java lines 625–635

    @Override
    protected final void cancelOutstandingReads(IoRegistration registration, int numOutstandingReads) {
        if (readId != 0) {
            // Let's try to cancel outstanding reads as these might be submitted and waiting for data (via fastpoll).
            assert numOutstandingReads == 1 || numOutstandingReads == -1;
            IoUringIoOps ops = IoUringIoOps.newAsyncCancel((byte) 0, readId, readOpCode);
            long id = registration.submit(ops);
            assert id != 0;
            readId = 0;
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does cancelOutstandingReads() do?
cancelOutstandingReads() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java.
Where is cancelOutstandingReads() defined?
cancelOutstandingReads() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java at line 625.

Analyze Your Own Codebase

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

Try Supermodel Free