Package org.fcrepo.persistence.api
Interface PersistentStorageSessionManager
-
- All Known Implementing Classes:
OcflPersistentSessionManager
public interface PersistentStorageSessionManager
Interface to access PersistentStorageSessions.- Since:
- 2019-09-19
- Author:
- whikloj, dbernstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PersistentStorageSession
getReadOnlySession()
Retrieve a read-only PersistentStorageSession.PersistentStorageSession
getSession(Transaction transaction)
Retrieve a PersistentStorageSession.PersistentStorageSession
removeSession(String sessionId)
Removes the indicated session.
-
-
-
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
-
-