Package io.netty.handler.ssl
Class OpenSslClientSessionCache
java.lang.Object
io.netty.handler.ssl.OpenSslSessionCache
io.netty.handler.ssl.OpenSslClientSessionCache
- All Implemented Interfaces:
io.netty.internal.tcnative.SSLSessionCache
OpenSslSessionCache
that is used by the client-side.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Host / Port tuple used to find aOpenSslSession
in the cache.Nested classes/interfaces inherited from class io.netty.handler.ssl.OpenSslSessionCache
OpenSslSessionCache.NativeSslSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<OpenSslClientSessionCache.HostPort, Set<OpenSslSessionCache.NativeSslSession>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
clear()
Clear the cache and free all cached SSL_SESSION*.private static OpenSslClientSessionCache.HostPort
protected boolean
Called once a newOpenSslSession
was created.protected void
Called once anOpenSslSession
was removed from the cache.(package private) boolean
setSession
(long ssl, OpenSslSession session, String host, int port) Methods inherited from class io.netty.handler.ssl.OpenSslSessionCache
containsSessionWithId, getIds, getSession, getSession, getSessionCacheSize, getSessionTimeout, removeSessionWithId, sessionCreated, setSessionCacheSize, setSessionTimeout
-
Field Details
-
sessions
private final Map<OpenSslClientSessionCache.HostPort,Set<OpenSslSessionCache.NativeSslSession>> sessions
-
-
Constructor Details
-
OpenSslClientSessionCache
OpenSslClientSessionCache(OpenSslEngineMap engineMap)
-
-
Method Details
-
sessionCreated
Description copied from class:OpenSslSessionCache
Called once a newOpenSslSession
was created.- Overrides:
sessionCreated
in classOpenSslSessionCache
- Parameters:
session
- the new session.- Returns:
true
if the session should be cached,false
otherwise.
-
sessionRemoved
Description copied from class:OpenSslSessionCache
Called once anOpenSslSession
was removed from the cache.- Overrides:
sessionRemoved
in classOpenSslSessionCache
- Parameters:
session
- the session to remove.
-
setSession
- Overrides:
setSession
in classOpenSslSessionCache
-
keyFor
-
clear
void clear()Description copied from class:OpenSslSessionCache
Clear the cache and free all cached SSL_SESSION*.- Overrides:
clear
in classOpenSslSessionCache
-