Interface CurrentEventsBySliceStartingFromSnapshotsQuery
- All Superinterfaces:
ReadJournal
A plugin may optionally support this query by implementing this trait.
API May Change
-
Method Summary
Modifier and TypeMethodDescription<Snapshot,Event>
Source<EventEnvelope<Event>,NotUsed> currentEventsBySlicesStartingFromSnapshots(String entityType, int minSlice, int maxSlice, Offset offset, scala.Function1<Snapshot, Event> transformSnapshot) Same asEventsBySliceStartingFromSnapshotsQuerybut with the purpose to use snapshots as starting points and thereby reducing number of events that have to be loaded.intsliceForPersistenceId(String persistenceId) scala.collection.immutable.Seq<scala.collection.immutable.Range>sliceRanges(int numberOfRanges)
-
Method Details
-
currentEventsBySlicesStartingFromSnapshots
<Snapshot,Event> Source<EventEnvelope<Event>,NotUsed> currentEventsBySlicesStartingFromSnapshots(String entityType, int minSlice, int maxSlice, Offset offset, scala.Function1<Snapshot, Event> transformSnapshot) Same asEventsBySliceStartingFromSnapshotsQuerybut with the purpose to use snapshots as starting points and thereby reducing number of events that have to be loaded. This can be useful if the consumer start from zero without any previously processed offset or if it has been disconnected for a long while and its offset is far behind.Same type of query as
EventsBySliceStartingFromSnapshotsQuery.eventsBySlicesStartingFromSnapshotsbut the event stream is completed immediately when it reaches the end of the "result set". -
sliceForPersistenceId
-
sliceRanges
scala.collection.immutable.Seq<scala.collection.immutable.Range> sliceRanges(int numberOfRanges)
-