expungeInvalidSessions() — netty Function Reference
Architecture documentation for the expungeInvalidSessions() function in OpenSslSessionCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 47cfafe5_3408_4ef1_83f8_ee5da65e49ad["expungeInvalidSessions()"] 6355c604_3e83_2b17_e056_558795a68fc3["OpenSslSessionCache"] 47cfafe5_3408_4ef1_83f8_ee5da65e49ad -->|defined in| 6355c604_3e83_2b17_e056_558795a68fc3 b0c9f020_ce9e_89e3_fb97_acebd4a5fba9["sessionCreated()"] b0c9f020_ce9e_89e3_fb97_acebd4a5fba9 -->|calls| 47cfafe5_3408_4ef1_83f8_ee5da65e49ad ad6e504f_835f_5a30_4635_c8827fa4567b["isValid()"] 47cfafe5_3408_4ef1_83f8_ee5da65e49ad -->|calls| ad6e504f_835f_5a30_4635_c8827fa4567b fffde80d_79d3_d174_a852_3dbd539cda36["notifyRemovalAndFree()"] 47cfafe5_3408_4ef1_83f8_ee5da65e49ad -->|calls| fffde80d_79d3_d174_a852_3dbd539cda36 style 47cfafe5_3408_4ef1_83f8_ee5da65e49ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/ssl/OpenSslSessionCache.java lines 123–141
private void expungeInvalidSessions() {
if (sessions.isEmpty()) {
return;
}
long now = System.currentTimeMillis();
Iterator<Map.Entry<OpenSslSessionId, NativeSslSession>> iterator = sessions.entrySet().iterator();
while (iterator.hasNext()) {
NativeSslSession session = iterator.next().getValue();
// As we use a LinkedHashMap we can break the while loop as soon as we find a valid session.
// This is true as we always drain the cache as soon as we change the timeout to a smaller value as
// it was set before. This way its true that the insertion order matches the timeout order.
if (session.isValid(now)) {
break;
}
iterator.remove();
notifyRemovalAndFree(session);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does expungeInvalidSessions() do?
expungeInvalidSessions() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionCache.java.
Where is expungeInvalidSessions() defined?
expungeInvalidSessions() is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslSessionCache.java at line 123.
What does expungeInvalidSessions() call?
expungeInvalidSessions() calls 2 function(s): isValid, notifyRemovalAndFree.
What calls expungeInvalidSessions()?
expungeInvalidSessions() is called by 1 function(s): sessionCreated.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free