Interface ReactiveSessionRegistry
- All Known Implementing Classes:
InMemoryReactiveSessionRegistry
public interface ReactiveSessionRegistry
Maintains a registry of
ReactiveSessionInformation instances.- Since:
- 6.3
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<ReactiveSessionInformation>getAllSessions(Object principal) Gets all the knownReactiveSessionInformationinstances for the specified principal.reactor.core.publisher.Mono<ReactiveSessionInformation>getSessionInformation(String sessionId) Gets theReactiveSessionInformationfor the specified session identifier.reactor.core.publisher.Mono<ReactiveSessionInformation>removeSessionInformation(String sessionId) Removes the specified session from the registry.reactor.core.publisher.Mono<Void>saveSessionInformation(ReactiveSessionInformation information) Saves theReactiveSessionInformationreactor.core.publisher.Mono<ReactiveSessionInformation>updateLastAccessTime(String sessionId) Updates the last accessed time of theReactiveSessionInformation
-
Method Details
-
getAllSessions
Gets all the knownReactiveSessionInformationinstances for the specified principal.- Parameters:
principal- the principal- Returns:
- the
ReactiveSessionInformationinstances associated with the principal
-
saveSessionInformation
Saves theReactiveSessionInformation- Parameters:
information- theReactiveSessionInformationto save- Returns:
- a
Monothat completes when the session is saved
-
getSessionInformation
Gets theReactiveSessionInformationfor the specified session identifier.- Parameters:
sessionId- the session identifier- Returns:
- the
ReactiveSessionInformationfor the session.
-
removeSessionInformation
Removes the specified session from the registry.- Parameters:
sessionId- the session identifier- Returns:
- a
Monothat completes when the session is removed
-
updateLastAccessTime
Updates the last accessed time of theReactiveSessionInformation- Parameters:
sessionId- the session identifier- Returns:
- a
Monothat completes when the session is updated
-