Package org.fcrepo.persistence.api
Interface PersistentStorageSessionManager
-
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 PersistentStorageSessiongetReadOnlySession()Retrieve a read-only PersistentStorageSession.PersistentStorageSessiongetSession(String sessionId)Retrieve a PersistentStorageSession.PersistentStorageSessionremoveSession(String sessionId)Removes the indicated session.
-
-
-
Method Detail
-
getSession
PersistentStorageSession getSession(String sessionId)
Retrieve a PersistentStorageSession.- Parameters:
sessionId- the externally generated session ID.- 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
-
-