SnapshotStore

edomata.backend.eventsourcing.SnapshotStore
See theSnapshotStore companion object
trait SnapshotStore[F[_], S] extends SnapshotReader[F, S]

Attributes

Companion
object
Source
Snapshot.scala
Graph
Supertypes
trait SnapshotReader[F, S]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def put(id: StreamId, state: Valid[S]): F[Unit]

Attributes

Source
Snapshot.scala

Inherited methods

def get(id: StreamId): F[Option[Valid[S]]]

Reads snapshot

Reads snapshot

this might involve reading from disk and/or provide the latest version available due to buffering for instance

Value parameters

id

Stream id to read snapshot for

Attributes

Returns

optional snapshot for a folded aggregate

Inherited from:
SnapshotReader
Source
Snapshot.scala
def getFast(id: StreamId): F[Option[Valid[S]]]

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Reads snapshot from a fast access storage or returns None if not accessible from fast storage/cache. it will always return last version of cache or None.

Value parameters

id

Stream id to read snapshot for

Attributes

Returns

optional snapshot for a folded aggregate

Inherited from:
SnapshotReader
Source
Snapshot.scala