Home / Function/ setFlag() — netty Function Reference

setFlag() — netty Function Reference

Architecture documentation for the setFlag() function in AbstractEpollChannel.java from the netty codebase.

Function java Buffer Search called by 3

Entity Profile

Dependency Diagram

graph TD
  183eb932_fb7f_4488_b2e8_71058cc21874["setFlag()"]
  6a1b1970_2eef_b28f_03e7_8b11508deece["AbstractEpollChannel"]
  183eb932_fb7f_4488_b2e8_71058cc21874 -->|defined in| 6a1b1970_2eef_b28f_03e7_8b11508deece
  53247603_85d1_6236_4978_c5e23c7a1777["doBeginRead()"]
  53247603_85d1_6236_4978_c5e23c7a1777 -->|calls| 183eb932_fb7f_4488_b2e8_71058cc21874
  a2aa9020_1497_44ac_ace1_8f2c0cb8fc3d["doConnect0()"]
  a2aa9020_1497_44ac_ace1_8f2c0cb8fc3d -->|calls| 183eb932_fb7f_4488_b2e8_71058cc21874
  26534c2f_a6cf_698d_8608_d82430b32dc2["doFinishConnect()"]
  26534c2f_a6cf_698d_8608_d82430b32dc2 -->|calls| 183eb932_fb7f_4488_b2e8_71058cc21874
  style 183eb932_fb7f_4488_b2e8_71058cc21874 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java lines 118–130

    protected void setFlag(int flag) throws IOException {
        if (ops.contains(flag)) {
            // we can save a syscall if the ops did not change
            return;
        }
        ops = ops.with(EpollIoOps.valueOf(flag));
        if (isRegistered()) {
            IoRegistration registration = registration();
            registration.submit(ops);
        } else {
            ops = ops.with(EpollIoOps.valueOf(flag));
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does setFlag() do?
setFlag() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java.
Where is setFlag() defined?
setFlag() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java at line 118.
What calls setFlag()?
setFlag() is called by 3 function(s): doBeginRead, doConnect0, doFinishConnect.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free