Home / Function/ flush() — netty Function Reference

flush() — netty Function Reference

Architecture documentation for the flush() function in Lz4FrameEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  685f3ff0_d3ac_dc7e_e9b8_0f821240ad37["flush()"]
  4a29aef3_e017_5f9e_e255_496a25a8988e["Lz4FrameEncoder"]
  685f3ff0_d3ac_dc7e_e9b8_0f821240ad37 -->|defined in| 4a29aef3_e017_5f9e_e255_496a25a8988e
  159fbf77_5b7d_bd62_3287_8d2df4c59091["flushBufferedData()"]
  685f3ff0_d3ac_dc7e_e9b8_0f821240ad37 -->|calls| 159fbf77_5b7d_bd62_3287_8d2df4c59091
  style 685f3ff0_d3ac_dc7e_e9b8_0f821240ad37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/Lz4FrameEncoder.java lines 296–304

    @Override
    public void flush(final ChannelHandlerContext ctx) throws Exception {
        if (buffer != null && buffer.isReadable()) {
            final ByteBuf buf = allocateBuffer(ctx, Unpooled.EMPTY_BUFFER, isPreferDirect(), false);
            flushBufferedData(buf);
            ctx.write(buf);
        }
        ctx.flush();
    }

Domain

Subdomains

Frequently Asked Questions

What does flush() do?
flush() is a function in the netty codebase, defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Lz4FrameEncoder.java.
Where is flush() defined?
flush() is defined in codec-compression/src/main/java/io/netty/handler/codec/compression/Lz4FrameEncoder.java at line 296.
What does flush() call?
flush() calls 1 function(s): flushBufferedData.

Analyze Your Own Codebase

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

Try Supermodel Free