public interface WebSessionStore
WebSession
persistence.Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<WebSession> |
createWebSession()
Create a new WebSession.
|
reactor.core.publisher.Mono<java.lang.Void> |
removeSession(java.lang.String sessionId)
Remove the WebSession for the specified id.
|
reactor.core.publisher.Mono<WebSession> |
retrieveSession(java.lang.String sessionId)
Return the WebSession for the given id.
|
reactor.core.publisher.Mono<WebSession> |
updateLastAccessTime(WebSession webSession)
Update the last accessed timestamp to "now".
|
reactor.core.publisher.Mono<WebSession> createWebSession()
Note that this does nothing more than create a new instance.
The session can later be started explicitly via WebSession.start()
or implicitly by adding attributes -- and then persisted via
WebSession.save()
.
reactor.core.publisher.Mono<WebSession> retrieveSession(java.lang.String sessionId)
Note: This method should perform an expiration check, and if it has expired remove the session and return empty. This method should also update the lastAccessTime of retrieved sessions.
sessionId
- the session to loadMono
.reactor.core.publisher.Mono<java.lang.Void> removeSession(java.lang.String sessionId)
sessionId
- the id of the session to removereactor.core.publisher.Mono<WebSession> updateLastAccessTime(WebSession webSession)
webSession
- the session to update