summaryrefslogtreecommitdiff
path: root/server/src/session.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/session.h')
-rw-r--r--server/src/session.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/session.h b/server/src/session.h
index 48c01d7..6c614c7 100644
--- a/server/src/session.h
+++ b/server/src/session.h
@@ -38,6 +38,7 @@ class JournalWriter;
class Session {
public:
Session(std::string sessionid);
+ ~Session();
std::string id();
@@ -45,6 +46,7 @@ public:
void unlock();
void commit();
+ void discard();
JournalWriter *journal();
@@ -86,6 +88,11 @@ public:
*/
size_t size();
+ /**
+ * Write all active sessions to disc.
+ */
+ void store();
+
private:
std::map<std::string, Session *> sessions;
};