Home / Function/ closeOnFlush() — netty Function Reference

closeOnFlush() — netty Function Reference

Architecture documentation for the closeOnFlush() function in HexDumpProxyFrontendHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4f399dc4_2724_265c_7b7d_ab360f901458["closeOnFlush()"]
  80e1dfc5_bd72_03a2_6186_6a50f3a5bb00["HexDumpProxyFrontendHandler"]
  4f399dc4_2724_265c_7b7d_ab360f901458 -->|defined in| 80e1dfc5_bd72_03a2_6186_6a50f3a5bb00
  1fe7e03e_74b7_196b_ef16_83238d8b726e["channelInactive()"]
  1fe7e03e_74b7_196b_ef16_83238d8b726e -->|calls| 4f399dc4_2724_265c_7b7d_ab360f901458
  aac00a87_48d9_2e79_ec43_e8531cf4514e["exceptionCaught()"]
  aac00a87_48d9_2e79_ec43_e8531cf4514e -->|calls| 4f399dc4_2724_265c_7b7d_ab360f901458
  style 4f399dc4_2724_265c_7b7d_ab360f901458 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/proxy/HexDumpProxyFrontendHandler.java lines 94–98

    static void closeOnFlush(Channel ch) {
        if (ch.isActive()) {
            ch.writeAndFlush(Unpooled.EMPTY_BUFFER).addListener(ChannelFutureListener.CLOSE);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does closeOnFlush() do?
closeOnFlush() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/proxy/HexDumpProxyFrontendHandler.java.
Where is closeOnFlush() defined?
closeOnFlush() is defined in example/src/main/java/io/netty/example/proxy/HexDumpProxyFrontendHandler.java at line 94.
What calls closeOnFlush()?
closeOnFlush() is called by 2 function(s): channelInactive, exceptionCaught.

Analyze Your Own Codebase

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

Try Supermodel Free