Home / Function/ close() — netty Function Reference

close() — netty Function Reference

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

Function java Buffer Allocators calls 2 called by 3

Entity Profile

Dependency Diagram

graph TD
  d68f3978_6547_b81e_e6ff_20397d066591["close()"]
  64c539b4_9d62_5673_892e_728dc5998630["Writer"]
  d68f3978_6547_b81e_e6ff_20397d066591 -->|defined in| 64c539b4_9d62_5673_892e_728dc5998630
  e044a0a0_3440_c839_e554_9efe949bbe03["close()"]
  e044a0a0_3440_c839_e554_9efe949bbe03 -->|calls| d68f3978_6547_b81e_e6ff_20397d066591
  4348774c_38a4_2a31_e98d_d0c02ec41984["ChannelFuture()"]
  4348774c_38a4_2a31_e98d_d0c02ec41984 -->|calls| d68f3978_6547_b81e_e6ff_20397d066591
  589580a9_3e45_15df_0d67_4c020f38c2d1["finish()"]
  589580a9_3e45_15df_0d67_4c020f38c2d1 -->|calls| d68f3978_6547_b81e_e6ff_20397d066591
  e044a0a0_3440_c839_e554_9efe949bbe03["close()"]
  d68f3978_6547_b81e_e6ff_20397d066591 -->|calls| e044a0a0_3440_c839_e554_9efe949bbe03
  589580a9_3e45_15df_0d67_4c020f38c2d1["finish()"]
  d68f3978_6547_b81e_e6ff_20397d066591 -->|calls| 589580a9_3e45_15df_0d67_4c020f38c2d1
  style d68f3978_6547_b81e_e6ff_20397d066591 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-compression/src/main/java/io/netty/handler/codec/compression/BrotliEncoder.java lines 242–256

        @Override
        public void close() {
            final ChannelPromise promise = ctx.newPromise();

            ctx.executor().execute(new Runnable() {
                @Override
                public void run() {
                    try {
                        finish(promise);
                    } catch (IOException ex) {
                        promise.setFailure(new IllegalStateException("Failed to finish encoding", ex));
                    }
                }
            });
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free