checkDeadLock() — netty Function Reference
Architecture documentation for the checkDeadLock() function in SslHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 929123a6_cbbf_2997_c536_7103f0009ac0["checkDeadLock()"] f0ccbe5b_17b6_f018_45e5_3edfebdb17fc["LazyChannelPromise"] 929123a6_cbbf_2997_c536_7103f0009ac0 -->|defined in| f0ccbe5b_17b6_f018_45e5_3edfebdb17fc 5f4e8183_7108_ca0e_bcdf_b597e4832141["handlerAdded()"] 929123a6_cbbf_2997_c536_7103f0009ac0 -->|calls| 5f4e8183_7108_ca0e_bcdf_b597e4832141 5a68c4b0_fb46_b53f_0fc3_ad6630bae0d7["handshakeFuture()"] 929123a6_cbbf_2997_c536_7103f0009ac0 -->|calls| 5a68c4b0_fb46_b53f_0fc3_ad6630bae0d7 style 929123a6_cbbf_2997_c536_7103f0009ac0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/SslHandler.java lines 2461–2473
@Override
protected void checkDeadLock() {
if (ctx == null) {
// If ctx is null the handlerAdded(...) callback was not called, in this case the checkDeadLock()
// method was called from another Thread then the one that is used by ctx.executor(). We need to
// guard against this as a user can see a race if handshakeFuture().sync() is called but the
// handlerAdded(..) method was not yet as it is called from the EventExecutor of the
// ChannelHandlerContext. If we not guard against this super.checkDeadLock() would cause an
// IllegalStateException when trying to call executor().
return;
}
super.checkDeadLock();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkDeadLock() do?
checkDeadLock() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java.
Where is checkDeadLock() defined?
checkDeadLock() is defined in handler/src/main/java/io/netty/handler/ssl/SslHandler.java at line 2461.
What does checkDeadLock() call?
checkDeadLock() calls 2 function(s): handlerAdded, handshakeFuture.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free