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

Expose MongoSession as public final #3041

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Greg Turnquist
* @since 1.2
*/
class MongoSession implements Session {
public final class MongoSession implements Session {

/**
* Mongo doesn't support {@literal dot} in field names. We replace it with a unicode
Expand Down Expand Up @@ -74,20 +74,19 @@ class MongoSession implements Session {
* @param sessionId the session id to use
* @since 3.2
*/
MongoSession(String sessionId) {
public MongoSession(String sessionId) {
this(sessionId, MapSession.DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS);
}

MongoSession() {
public MongoSession() {
this(MapSession.DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS);
}

MongoSession(long maxInactiveIntervalInSeconds) {
public MongoSession(long maxInactiveIntervalInSeconds) {
this(UuidSessionIdGenerator.getInstance().generate(), maxInactiveIntervalInSeconds);
}

MongoSession(String id, long maxInactiveIntervalInSeconds) {

public MongoSession(String id, long maxInactiveIntervalInSeconds) {
this.id = id;
this.originalSessionId = id;
this.intervalSeconds = maxInactiveIntervalInSeconds;
Expand All @@ -99,7 +98,7 @@ class MongoSession implements Session {
* @param sessionIdGenerator the {@link SessionIdGenerator} to use
* @since 3.2
*/
MongoSession(SessionIdGenerator sessionIdGenerator) {
public MongoSession(SessionIdGenerator sessionIdGenerator) {
this(sessionIdGenerator.generate(), MapSession.DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS);
this.sessionIdGenerator = sessionIdGenerator;
}
Expand Down
Loading