Home / Function/ addListeners() — netty Function Reference

addListeners() — netty Function Reference

Architecture documentation for the addListeners() function in CompleteFuture.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9f7c87a5_e5b3_df05_409c_25f45ee2217b["addListeners()"]
  3ff4b834_94f3_e526_984d_edda7ab1f853["CompleteFuture"]
  9f7c87a5_e5b3_df05_409c_25f45ee2217b -->|defined in| 3ff4b834_94f3_e526_984d_edda7ab1f853
  style 9f7c87a5_e5b3_df05_409c_25f45ee2217b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/CompleteFuture.java lines 52–63

    @Override
    public Future<V> addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) {
        for (GenericFutureListener<? extends Future<? super V>> l:
                ObjectUtil.checkNotNull(listeners, "listeners")) {

            if (l == null) {
                break;
            }
            DefaultPromise.notifyListener(executor(), this, l);
        }
        return this;
    }

Domain

Subdomains

Frequently Asked Questions

What does addListeners() do?
addListeners() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/CompleteFuture.java.
Where is addListeners() defined?
addListeners() is defined in common/src/main/java/io/netty/util/concurrent/CompleteFuture.java at line 52.

Analyze Your Own Codebase

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

Try Supermodel Free