接口 WebSessionStore

    • 方法详细资料

      • createWebSession

        reactor.core.publisher.Mono<WebSessioncreateWebSession()
        Create a new WebSession.

        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().

        返回:
        the created session instance
      • retrieveSession

        reactor.core.publisher.Mono<WebSessionretrieveSession​(String sessionId)
        Return the WebSession for the given id.

        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 load
        返回:
        the session, or an empty Mono .
      • removeSession

        reactor.core.publisher.Mono<VoidremoveSession​(String sessionId)
        Remove the WebSession for the specified id.
        参数:
        sessionId - the id of the session to remove
        返回:
        a completion notification (success or error)
      • updateLastAccessTime

        reactor.core.publisher.Mono<WebSessionupdateLastAccessTime​(WebSession webSession)
        Update the last accessed timestamp to "now".
        参数:
        webSession - the session to update
        返回:
        the session with the updated last access time