Interface PersistentStorageSessionManager

    • Method Detail

      • getSession

        PersistentStorageSession getSession​(Transaction transaction)
        Retrieve a PersistentStorageSession.
        Parameters:
        transaction - the externally generated transaction.
        Returns:
        the PersistentStorageSession instance.
      • getReadOnlySession

        PersistentStorageSession getReadOnlySession()
        Retrieve a read-only PersistentStorageSession. Clients should expect invocation on storage modifying methods to throw exception.
        Returns:
        the PersistentStorageSession instance.
      • removeSession

        PersistentStorageSession removeSession​(String sessionId)
        Removes the indicated session. If the session does not exist, null is returned.
        Parameters:
        sessionId - the id of the session to remove
        Returns:
        the session, if it exists