addListener() — netty Function Reference
Architecture documentation for the addListener() function in DefaultPromise.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 9c9d5e6f_6ff4_2673_f553_713895ee985f["addListener()"] a0080a71_f091_42e0_8a20_424f0bf9d34a["DefaultPromise"] 9c9d5e6f_6ff4_2673_f553_713895ee985f -->|defined in| a0080a71_f091_42e0_8a20_424f0bf9d34a badff0f4_ca7a_cf0b_f357_ce4c7cdf5e14["addListener0()"] 9c9d5e6f_6ff4_2673_f553_713895ee985f -->|calls| badff0f4_ca7a_cf0b_f357_ce4c7cdf5e14 3740273d_6083_b014_4154_fce4202c359c["isDone()"] 9c9d5e6f_6ff4_2673_f553_713895ee985f -->|calls| 3740273d_6083_b014_4154_fce4202c359c 00513e87_934e_6633_22ee_a4fb405c640f["notifyListeners()"] 9c9d5e6f_6ff4_2673_f553_713895ee985f -->|calls| 00513e87_934e_6633_22ee_a4fb405c640f style 9c9d5e6f_6ff4_2673_f553_713895ee985f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/DefaultPromise.java lines 190–203
@Override
public Promise<V> addListener(GenericFutureListener<? extends Future<? super V>> listener) {
checkNotNull(listener, "listener");
synchronized (this) {
addListener0(listener);
}
if (isDone()) {
notifyListeners();
}
return this;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does addListener() do?
addListener() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java.
Where is addListener() defined?
addListener() is defined in common/src/main/java/io/netty/util/concurrent/DefaultPromise.java at line 190.
What does addListener() call?
addListener() calls 3 function(s): addListener0, isDone, notifyListeners.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free