Home / Function/ write() — netty Function Reference

write() — netty Function Reference

Architecture documentation for the write() function in ProxyHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  53b0c396_8143_b4ee_07c1_85891e4e49fb["write()"]
  3f5c9c39_cf82_6deb_e43b_1a9ad5499a99["ProxyHandler"]
  53b0c396_8143_b4ee_07c1_85891e4e49fb -->|defined in| 3f5c9c39_cf82_6deb_e43b_1a9ad5499a99
  3a0a34d2_5ea7_98c5_9064_2be33b66bcc4["writePendingWrites()"]
  53b0c396_8143_b4ee_07c1_85891e4e49fb -->|calls| 3a0a34d2_5ea7_98c5_9064_2be33b66bcc4
  953bb405_997a_1d47_f251_ed4ee5e8985b["addPendingWrite()"]
  53b0c396_8143_b4ee_07c1_85891e4e49fb -->|calls| 953bb405_997a_1d47_f251_ed4ee5e8985b
  style 53b0c396_8143_b4ee_07c1_85891e4e49fb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java lines 398–406

    @Override
    public final void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        if (finished) {
            writePendingWrites();
            ctx.write(msg, promise);
        } else {
            addPendingWrite(ctx, msg, promise);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does write() do?
write() is a function in the netty codebase, defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java.
Where is write() defined?
write() is defined in handler-proxy/src/main/java/io/netty/handler/proxy/ProxyHandler.java at line 398.
What does write() call?
write() calls 2 function(s): addPendingWrite, writePendingWrites.

Analyze Your Own Codebase

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

Try Supermodel Free