fulfillConnectPromise() — netty Function Reference
Architecture documentation for the fulfillConnectPromise() function in AbstractEpollChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d6ec7c78_ff12_be00_5d69_cfc239574638["fulfillConnectPromise()"] 48a4b0f2_9a93_c0ec_29eb_423e8fb5ce85["AbstractEpollUnsafe"] d6ec7c78_ff12_be00_5d69_cfc239574638 -->|defined in| 48a4b0f2_9a93_c0ec_29eb_423e8fb5ce85 de296ec8_0585_b2e9_10fb_e6fbdd21f16f["connect()"] de296ec8_0585_b2e9_10fb_e6fbdd21f16f -->|calls| d6ec7c78_ff12_be00_5d69_cfc239574638 3eafc60b_718d_72cc_d9ef_90f7ec6eb01f["finishConnect()"] 3eafc60b_718d_72cc_d9ef_90f7ec6eb01f -->|calls| d6ec7c78_ff12_be00_5d69_cfc239574638 e5df1ea4_b861_4381_789a_3b2851d17fe0["isActive()"] d6ec7c78_ff12_be00_5d69_cfc239574638 -->|calls| e5df1ea4_b861_4381_789a_3b2851d17fe0 d9ab1040_9ace_496a_a503_4d950b47fbce["close()"] d6ec7c78_ff12_be00_5d69_cfc239574638 -->|calls| d9ab1040_9ace_496a_a503_4d950b47fbce style d6ec7c78_ff12_be00_5d69_cfc239574638 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java lines 695–719
private void fulfillConnectPromise(ChannelPromise promise, boolean wasActive) {
if (promise == null) {
// Closed via cancellation and the promise has been notified already.
return;
}
active = true;
// Get the state as trySuccess() may trigger an ChannelFutureListener that will close the Channel.
// We still need to ensure we call fireChannelActive() in this case.
boolean active = isActive();
// trySuccess() will return false if a user cancelled the connection attempt.
boolean promiseSet = promise.trySuccess();
// Regardless if the connection attempt was cancelled, channelActive() event should be triggered,
// because what happened is what happened.
if (!wasActive && active) {
pipeline().fireChannelActive();
}
// If a user cancelled the connection attempt, close the channel, which is followed by channelInactive().
if (!promiseSet) {
close(voidPromise());
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does fulfillConnectPromise() do?
fulfillConnectPromise() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java.
Where is fulfillConnectPromise() defined?
fulfillConnectPromise() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollChannel.java at line 695.
What does fulfillConnectPromise() call?
fulfillConnectPromise() calls 2 function(s): close, isActive.
What calls fulfillConnectPromise()?
fulfillConnectPromise() is called by 2 function(s): connect, finishConnect.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free