@Synchronized fun persist(engine: Engine, snapshot: SessionsSnapshot): Boolean
(source)
Overrides SessionStorage.persist
Persists the provided SessionsSnapshot for a given Engine. SessionsSnapshot may be obtained using SessionManager.createSnapshot. Throws if snapshot is empty or otherwise incoherent.
engine
- the engine in which context to persist a snapshot.
snapshot
- the snapshot of snapshot which are to be persisted.
Return
true if the snapshot was persisted, otherwise false.