Interface CurrentEventsBySliceQuery
-
- All Superinterfaces:
ReadJournal
- All Known Implementing Classes:
PersistenceTestKitDurableStateStore
,PersistenceTestKitReadJournal
public interface CurrentEventsBySliceQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <Event> Source<EventEnvelope<Event>,NotUsed>
currentEventsBySlices(java.lang.String entityType, int minSlice, int maxSlice, Offset offset)
Same type of query asEventsBySliceQuery.eventsBySlices
but the event stream is completed immediately when it reaches the end of the "result set".int
sliceForPersistenceId(java.lang.String persistenceId)
java.util.List<Pair<java.lang.Integer,java.lang.Integer>>
sliceRanges(int numberOfRanges)
-
-
-
Method Detail
-
currentEventsBySlices
<Event> Source<EventEnvelope<Event>,NotUsed> currentEventsBySlices(java.lang.String entityType, int minSlice, int maxSlice, Offset offset)
Same type of query asEventsBySliceQuery.eventsBySlices
but the event stream is completed immediately when it reaches the end of the "result set". Depending on journal implementation, this may mean all events up to when the query is started, or it may include events that are persisted while the query is still streaming results. For eventually consistent stores, it may only include all events up to some point before the query is started.
-
sliceForPersistenceId
int sliceForPersistenceId(java.lang.String persistenceId)
-
sliceRanges
java.util.List<Pair<java.lang.Integer,java.lang.Integer>> sliceRanges(int numberOfRanges)
-
-