Home / Function/ sessionRemoved() — netty Function Reference

sessionRemoved() — netty Function Reference

Architecture documentation for the sessionRemoved() function in OpenSslClientSessionCache.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bb76346f_317a_10d5_828f_ebff45fb3718["sessionRemoved()"]
  d994a42d_c2fd_7695_2456_467a8b045cb7["OpenSslClientSessionCache"]
  bb76346f_317a_10d5_828f_ebff45fb3718 -->|defined in| d994a42d_c2fd_7695_2456_467a8b045cb7
  style bb76346f_317a_10d5_828f_ebff45fb3718 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java lines 56–70

    @Override
    protected void sessionRemoved(NativeSslSession session) {
        assert Thread.holdsLock(this);
        HostPort hostPort = keyFor(session.getPeerHost(), session.getPeerPort());
        if (hostPort == null) {
            return;
        }
        Set<NativeSslSession> sessionsForHost = sessions.get(hostPort);
        if (sessionsForHost != null) {
            sessionsForHost.remove(session);
            if (sessionsForHost.isEmpty()) {
                sessions.remove(hostPort);
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does sessionRemoved() do?
sessionRemoved() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java.
Where is sessionRemoved() defined?
sessionRemoved() is defined in handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java at line 56.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free