getSession() — netty Function Reference
Architecture documentation for the getSession() function in QuicClientSessionCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 631b83c3_487b_35d7_f613_9447cbf4482a["getSession()"] 5d182568_b440_b59f_55b6_3e43b2f435b4["QuicClientSessionCache"] 631b83c3_487b_35d7_f613_9447cbf4482a -->|defined in| 5d182568_b440_b59f_55b6_3e43b2f435b4 da99630a_ddcb_73e2_dadc_7f183062b376["isSingleUse()"] 631b83c3_487b_35d7_f613_9447cbf4482a -->|calls| da99630a_ddcb_73e2_dadc_7f183062b376 0286cf2d_573d_e88b_d00f_89dc5179c2bc["isValid()"] 631b83c3_487b_35d7_f613_9447cbf4482a -->|calls| 0286cf2d_573d_e88b_d00f_89dc5179c2bc ed440734_c0f3_5d07_5845_675206c48e49["sessionBytes()"] 631b83c3_487b_35d7_f613_9447cbf4482a -->|calls| ed440734_c0f3_5d07_5845_675206c48e49 style 631b83c3_487b_35d7_f613_9447cbf4482a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java lines 87–106
byte @Nullable [] getSession(@Nullable String host, int port) {
HostPort hostPort = keyFor(host, port);
if (hostPort != null) {
SessionHolder sessionHolder;
synchronized (sessions) {
sessionHolder = sessions.get(hostPort);
if (sessionHolder == null) {
return null;
}
if (sessionHolder.isSingleUse()) {
// Remove session as it should only be re-used once.
sessions.remove(hostPort);
}
}
if (sessionHolder.isValid()) {
return sessionHolder.sessionBytes();
}
}
return null;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getSession() do?
getSession() is a function in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java.
Where is getSession() defined?
getSession() is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/QuicClientSessionCache.java at line 87.
What does getSession() call?
getSession() calls 3 function(s): isSingleUse, isValid, sessionBytes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free