Home / Function/ channelWritabilityChanged() — netty Function Reference

channelWritabilityChanged() — netty Function Reference

Architecture documentation for the channelWritabilityChanged() function in FlushConsolidationHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0f2773f4_ad95_8be9_0511_a9d657a2f9dc["channelWritabilityChanged()"]
  2c83d6ba_1bff_324b_5825_8c26ffd14953["FlushConsolidationHandler"]
  0f2773f4_ad95_8be9_0511_a9d657a2f9dc -->|defined in| 2c83d6ba_1bff_324b_5825_8c26ffd14953
  23231906_06a5_46d9_5278_bb246be7470c["flushIfNeeded()"]
  0f2773f4_ad95_8be9_0511_a9d657a2f9dc -->|calls| 23231906_06a5_46d9_5278_bb246be7470c
  style 0f2773f4_ad95_8be9_0511_a9d657a2f9dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/flush/FlushConsolidationHandler.java lines 176–183

    @Override
    public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception {
        if (!ctx.channel().isWritable()) {
            // The writability of the channel changed to false, so flush all consolidated flushes now to free up memory.
            flushIfNeeded(ctx);
        }
        ctx.fireChannelWritabilityChanged();
    }

Domain

Subdomains

Frequently Asked Questions

What does channelWritabilityChanged() do?
channelWritabilityChanged() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/flush/FlushConsolidationHandler.java.
Where is channelWritabilityChanged() defined?
channelWritabilityChanged() is defined in handler/src/main/java/io/netty/handler/flush/FlushConsolidationHandler.java at line 176.
What does channelWritabilityChanged() call?
channelWritabilityChanged() calls 1 function(s): flushIfNeeded.

Analyze Your Own Codebase

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

Try Supermodel Free