Home / Function/ sessionCreated() — netty Function Reference

sessionCreated() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/OpenSslClientSessionCache.java lines 38–54

    @Override
    protected boolean sessionCreated(NativeSslSession session) {
        assert Thread.holdsLock(this);
        HostPort hostPort = keyFor(session.getPeerHost(), session.getPeerPort());
        if (hostPort == null) {
            return false;
        }
        Set<NativeSslSession> sessionsForHost = sessions.get(hostPort);
        if (sessionsForHost == null) {
            // Let's start with something small as usually the server does not provide too many of these per hostPort
            // mapping.
            sessionsForHost = new HashSet<>(4);
            sessions.put(hostPort, sessionsForHost);
        }
        sessionsForHost.add(session);
        return true;
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free