public class InMemoryWebSessionStore extends Object implements WebSessionStore
WebSession
instances.Constructor and Description |
---|
InMemoryWebSessionStore() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
removeSession(String id)
Remove the session with the given id.
|
reactor.core.publisher.Mono<WebSession> |
retrieveSession(String id)
Load the session for the given session id.
|
reactor.core.publisher.Mono<Void> |
storeSession(WebSession session)
Store the given session.
|
public reactor.core.publisher.Mono<Void> storeSession(WebSession session)
WebSessionStore
storeSession
in interface WebSessionStore
session
- the session to storeMono
for completion notificationpublic reactor.core.publisher.Mono<WebSession> retrieveSession(String id)
WebSessionStore
retrieveSession
in interface WebSessionStore
id
- the session to loadMono
for async access to the loaded sessionpublic reactor.core.publisher.Mono<Void> removeSession(String id)
WebSessionStore
removeSession
in interface WebSessionStore
id
- the session to removeMono
for completion notification