Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #6752 DefaultSessionCache more extensible using ConcurrentMap #6753

Merged
merged 1 commit into from Sep 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -14,6 +14,7 @@
package org.eclipse.jetty.server.session;

import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Function;
import javax.servlet.http.HttpServletRequest;

Expand All @@ -27,17 +28,17 @@
/**
* DefaultSessionCache
*
* A session store that keeps its sessions in memory in a hashmap
* A session store that keeps its sessions in memory in a concurrent map
*/
@ManagedObject
public class DefaultSessionCache extends AbstractSessionCache
{
private static final Logger LOG = LoggerFactory.getLogger(DefaultSessionCache.class);

/**
* The cache of sessions in a hashmap
* The cache of sessions in a concurrent map
*/
protected ConcurrentHashMap<String, Session> _sessions = new ConcurrentHashMap<>();
protected ConcurrentMap<String, Session> _sessions = new ConcurrentHashMap<>();

private final CounterStatistic _stats = new CounterStatistic();

Expand Down