cancel() — netty Function Reference
Architecture documentation for the cancel() function in IoUringDatagramChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 599a4422_7633_8db5_3604_7295daf51f1c["cancel()"] 15b83cff_6ad6_b58a_64e5_7942764a0d6c["IoUringDatagramChannel"] 599a4422_7633_8db5_3604_7295daf51f1c -->|defined in| 15b83cff_6ad6_b58a_64e5_7942764a0d6c a9ada3f2_7e4f_bf42_22c9_be6a70f1a787["cancelOutstandingReads()"] a9ada3f2_7e4f_bf42_22c9_be6a70f1a787 -->|calls| 599a4422_7633_8db5_3604_7295daf51f1c 56142bf6_6ffa_8e12_e418_6c9bb9b69c9b["cancelOutstandingWrites()"] 56142bf6_6ffa_8e12_e418_6c9bb9b69c9b -->|calls| 599a4422_7633_8db5_3604_7295daf51f1c style 599a4422_7633_8db5_3604_7295daf51f1c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java lines 686–700
private int cancel(IoRegistration registration, byte op, MsgHdrMemoryArray array) {
int cancelled = 0;
for (int idx = 0; idx < array.length(); idx++) {
long id = array.id(idx);
if (id == MsgHdrMemoryArray.NO_ID) {
continue;
}
// Let's try to cancel outstanding op as these might be submitted and waiting for data
// (via fastpoll).
IoUringIoOps ops = IoUringIoOps.newAsyncCancel((byte) 0, id, op);
registration.submit(ops);
cancelled++;
}
return cancelled;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does cancel() do?
cancel() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java.
Where is cancel() defined?
cancel() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/IoUringDatagramChannel.java at line 686.
What calls cancel()?
cancel() is called by 2 function(s): cancelOutstandingReads, cancelOutstandingWrites.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free