doRegister() — netty Function Reference
Architecture documentation for the doRegister() function in AbstractKQueueChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c31e6618_cbb9_45c4_01da_1fcb966b50a9["doRegister()"] e50a36fb_84e6_15bc_5dc3_edd4246018f8["AbstractKQueueChannel"] c31e6618_cbb9_45c4_01da_1fcb966b50a9 -->|defined in| e50a36fb_84e6_15bc_5dc3_edd4246018f8 b1339e1e_79ee_8b56_0343_e8dd50929aee["submit()"] c31e6618_cbb9_45c4_01da_1fcb966b50a9 -->|calls| b1339e1e_79ee_8b56_0343_e8dd50929aee style c31e6618_cbb9_45c4_01da_1fcb966b50a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueChannel.java lines 201–225
@Override
protected void doRegister(ChannelPromise promise) {
((IoEventLoop) eventLoop()).register((AbstractKQueueUnsafe) unsafe()).addListener(f -> {
if (f.isSuccess()) {
this.registration = (IoRegistration) f.getNow();
// Just in case the previous EventLoop was shutdown abruptly, or an event is still pending on the old
// EventLoop make sure the readReadyRunnablePending variable is reset so we will be able to execute
// the Runnable on the new EventLoop.
readReadyRunnablePending = false;
submit(KQueueIoOps.newOps(Native.EVFILT_SOCK, Native.EV_ADD, Native.NOTE_RDHUP));
// Add the write event first so we get notified of connection refused on the client side!
if (writeFilterEnabled) {
submit(Native.WRITE_ENABLED_OPS);
}
if (readFilterEnabled) {
submit(Native.READ_ENABLED_OPS);
}
promise.setSuccess();
} else {
promise.setFailure(f.cause());
}
});
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does doRegister() do?
doRegister() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueChannel.java.
Where is doRegister() defined?
doRegister() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/AbstractKQueueChannel.java at line 201.
What does doRegister() call?
doRegister() calls 1 function(s): submit.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free