Home / Function/ ChannelFuture() — netty Function Reference

ChannelFuture() — netty Function Reference

Architecture documentation for the ChannelFuture() function in BrotliEncoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  4348774c_38a4_2a31_e98d_d0c02ec41984["ChannelFuture()"]
  cbdb377e_e1ea_86a4_5944_9d2fa3e5025c["BrotliEncoder"]
  4348774c_38a4_2a31_e98d_d0c02ec41984 -->|defined in| cbdb377e_e1ea_86a4_5944_9d2fa3e5025c
  d68f3978_6547_b81e_e6ff_20397d066591["close()"]
  4348774c_38a4_2a31_e98d_d0c02ec41984 -->|calls| d68f3978_6547_b81e_e6ff_20397d066591
  style 4348774c_38a4_2a31_e98d_d0c02ec41984 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliEncoder.java lines 160–174

    private ChannelFuture finishEncode(ChannelHandlerContext ctx, ChannelPromise promise) throws IOException {
        Writer writer;

        if (isSharable) {
            writer = ctx.channel().attr(ATTR).getAndSet(null);
        } else {
            writer = this.writer;
        }

        if (writer != null) {
            writer.close();
            this.writer = null;
        }
        return promise;
    }

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free