clearEpollIn() — netty Function Reference
Architecture documentation for the clearEpollIn() function in AbstractEpollChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 45958743_85ce_8a0a_53ca_ded726f14f31["clearEpollIn()"] 6a1b1970_2eef_b28f_03e7_8b11508deece["AbstractEpollChannel"] 45958743_85ce_8a0a_53ca_ded726f14f31 -->|defined in| 6a1b1970_2eef_b28f_03e7_8b11508deece 87f92a25_820d_6da3_4383_913f8e4f4164["clearEpollIn0()"] 45958743_85ce_8a0a_53ca_ded726f14f31 -->|calls| 87f92a25_820d_6da3_4383_913f8e4f4164 style 45958743_85ce_8a0a_53ca_ded726f14f31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java lines 268–292
final void clearEpollIn() {
// Only clear if registered with an EventLoop as otherwise
if (isRegistered()) {
final EventLoop loop = eventLoop();
final AbstractEpollUnsafe unsafe = (AbstractEpollUnsafe) unsafe();
if (loop.inEventLoop()) {
unsafe.clearEpollIn0();
} else {
// schedule a task to clear the EPOLLIN as it is not safe to modify it directly
loop.execute(new Runnable() {
@Override
public void run() {
if (!unsafe.readPending && !config().isAutoRead()) {
// Still no read triggered so clear it now
unsafe.clearEpollIn0();
}
}
});
}
} else {
// The EventLoop is not registered atm so just update the flags so the correct value
// will be used once the channel is registered
ops = ops.without(EpollIoOps.EPOLLIN);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does clearEpollIn() do?
clearEpollIn() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java.
Where is clearEpollIn() defined?
clearEpollIn() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java at line 268.
What does clearEpollIn() call?
clearEpollIn() calls 1 function(s): clearEpollIn0.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free