doRegister() — netty Function Reference
Architecture documentation for the doRegister() function in AbstractIoUringStreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cf970da1_be45_e1cb_f437_21c8ac6cefba["doRegister()"] e0084bc2_202c_2cf9_b167_f5ee8ec96f9b["AbstractIoUringStreamChannel"] cf970da1_be45_e1cb_f437_21c8ac6cefba -->|defined in| e0084bc2_202c_2cf9_b167_f5ee8ec96f9b style cf970da1_be45_e1cb_f437_21c8ac6cefba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java lines 196–221
@Override
protected final void doRegister(ChannelPromise promise) {
ChannelPromise registerPromise = this.newPromise();
// Ensure that the buffer group is properly set before channel::read
registerPromise.addListener(f -> {
if (f.isSuccess()) {
try {
short bgid = ((IoUringStreamChannelConfig) config()).getBufferGroupId();
if (bgid >= 0) {
final IoUringIoHandler ioUringIoHandler = registration().attachment();
bufferRing = ioUringIoHandler.findBufferRing(bgid);
}
if (active) {
// Register for POLLRDHUP if this channel is already considered active.
schedulePollRdHup();
}
} finally {
promise.setSuccess();
}
} else {
promise.setFailure(f.cause());
}
});
super.doRegister(registerPromise);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does doRegister() do?
doRegister() is a function in the netty codebase, defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java.
Where is doRegister() defined?
doRegister() is defined in transport-classes-io_uring/src/main/java/io/netty/channel/uring/AbstractIoUringStreamChannel.java at line 196.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free