Home / Function/ write() — netty Function Reference

write() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c0e66cf8_7fea_5c09_425e_7b33398c45e6["write()"]
  0d966029_8353_9df1_9042_4c0b69edb47c["TestHandler"]
  c0e66cf8_7fea_5c09_425e_7b33398c45e6 -->|defined in| 0d966029_8353_9df1_9042_4c0b69edb47c
  72b4c857_fb50_5de1_b53e_25cdc844e21a["testRemoveAndWriteAllReentrantWrite()"]
  72b4c857_fb50_5de1_b53e_25cdc844e21a -->|calls| c0e66cf8_7fea_5c09_425e_7b33398c45e6
  f36830e1_bcb2_871a_c18b_a197da46a0bf["testRemoveAndWriteAllWithVoidPromise()"]
  f36830e1_bcb2_871a_c18b_a197da46a0bf -->|calls| c0e66cf8_7fea_5c09_425e_7b33398c45e6
  style c0e66cf8_7fea_5c09_425e_7b33398c45e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java lines 358–364

        @Override
        public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
            queue.add(msg, promise);
            assertFalse(queue.isEmpty());
            assertEquals(++expectedSize, queue.size());
            assertNotNull(queue.current());
        }

Domain

Subdomains

Frequently Asked Questions

What does write() do?
write() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java.
Where is write() defined?
write() is defined in transport/src/test/java/io/netty/channel/PendingWriteQueueTest.java at line 358.
What calls write()?
write() is called by 2 function(s): testRemoveAndWriteAllReentrantWrite, testRemoveAndWriteAllWithVoidPromise.

Analyze Your Own Codebase

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

Try Supermodel Free