KQueueIoHandler() — netty Function Reference
Architecture documentation for the KQueueIoHandler() function in KQueueIoHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 341642d9_c89a_70ac_148e_ccaf2c44d4af["KQueueIoHandler()"] 75a3ba71_0590_fec0_e352_8a91c916c5af["KQueueIoHandler"] 341642d9_c89a_70ac_148e_ccaf2c44d4af -->|defined in| 75a3ba71_0590_fec0_e352_8a91c916c5af e76a479d_e4dc_86c7_5b16_190a25a43e9a["IoHandlerFactory()"] e76a479d_e4dc_86c7_5b16_190a25a43e9a -->|calls| 341642d9_c89a_70ac_148e_ccaf2c44d4af fa5633f7_0b94_3bc2_21b7_c76c0a51fa9c["destroy()"] 341642d9_c89a_70ac_148e_ccaf2c44d4af -->|calls| fa5633f7_0b94_3bc2_21b7_c76c0a51fa9c style 341642d9_c89a_70ac_148e_ccaf2c44d4af fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java lines 133–151
private KQueueIoHandler(ThreadAwareExecutor executor, int maxEvents, SelectStrategy strategy) {
this.executor = ObjectUtil.checkNotNull(executor, "executor");
this.selectStrategy = ObjectUtil.checkNotNull(strategy, "strategy");
this.kqueueFd = Native.newKQueue();
if (maxEvents == 0) {
allowGrowing = true;
maxEvents = 4096;
} else {
allowGrowing = false;
}
this.changeList = new KQueueEventArray(maxEvents);
this.eventList = new KQueueEventArray(maxEvents);
nativeArrays = new NativeArrays();
int result = Native.keventAddUserEvent(kqueueFd.intValue(), KQUEUE_WAKE_UP_IDENT);
if (result < 0) {
destroy();
throw new IllegalStateException("kevent failed to add user event with errno: " + (-result));
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does KQueueIoHandler() do?
KQueueIoHandler() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java.
Where is KQueueIoHandler() defined?
KQueueIoHandler() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/KQueueIoHandler.java at line 133.
What does KQueueIoHandler() call?
KQueueIoHandler() calls 1 function(s): destroy.
What calls KQueueIoHandler()?
KQueueIoHandler() is called by 1 function(s): IoHandlerFactory.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free