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<Void> |
removeSession(String sessionId)
Remove the WebSession for the specified id.
|
reactor.core.publisher.Mono<WebSession> |
retrieveSession(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(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<Void> removeSession(String sessionId)
sessionId - the id of the session to removereactor.core.publisher.Mono<WebSession> updateLastAccessTime(WebSession webSession)
webSession - the session to update