39
39
* @author Greg Turnquist
40
40
* @since 1.2
41
41
*/
42
- class MongoSession implements Session {
42
+ public final class MongoSession implements Session {
43
43
44
44
/**
45
45
* Mongo doesn't support {@literal dot} in field names. We replace it with a unicode
@@ -74,20 +74,19 @@ class MongoSession implements Session {
74
74
* @param sessionId the session id to use
75
75
* @since 3.2
76
76
*/
77
- MongoSession (String sessionId ) {
77
+ public MongoSession (String sessionId ) {
78
78
this (sessionId , MapSession .DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS );
79
79
}
80
80
81
- MongoSession () {
81
+ public MongoSession () {
82
82
this (MapSession .DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS );
83
83
}
84
84
85
- MongoSession (long maxInactiveIntervalInSeconds ) {
85
+ public MongoSession (long maxInactiveIntervalInSeconds ) {
86
86
this (UuidSessionIdGenerator .getInstance ().generate (), maxInactiveIntervalInSeconds );
87
87
}
88
88
89
- MongoSession (String id , long maxInactiveIntervalInSeconds ) {
90
-
89
+ public MongoSession (String id , long maxInactiveIntervalInSeconds ) {
91
90
this .id = id ;
92
91
this .originalSessionId = id ;
93
92
this .intervalSeconds = maxInactiveIntervalInSeconds ;
@@ -99,7 +98,7 @@ class MongoSession implements Session {
99
98
* @param sessionIdGenerator the {@link SessionIdGenerator} to use
100
99
* @since 3.2
101
100
*/
102
- MongoSession (SessionIdGenerator sessionIdGenerator ) {
101
+ public MongoSession (SessionIdGenerator sessionIdGenerator ) {
103
102
this (sessionIdGenerator .generate (), MapSession .DEFAULT_MAX_INACTIVE_INTERVAL_SECONDS );
104
103
this .sessionIdGenerator = sessionIdGenerator ;
105
104
}
0 commit comments