Interface EventsByPersistenceIdTypedQuery
- All Superinterfaces:
ReadJournal
- All Known Implementing Classes:
PersistenceTestKitReadJournal
A plugin may optionally support this query by implementing this trait.
API May Change
-
Method Summary
Modifier and TypeMethodDescription<Event> Source<EventEnvelope<Event>,NotUsed> eventsByPersistenceIdTyped(String persistenceId, long fromSequenceNr, long toSequenceNr) Query events for a specificPersistenceId.
-
Method Details
-
eventsByPersistenceIdTyped
<Event> Source<EventEnvelope<Event>,NotUsed> eventsByPersistenceIdTyped(String persistenceId, long fromSequenceNr, long toSequenceNr) Query events for a specificPersistenceId.Events are emitted in the order they were stored. The stream also emits events that are persisted after the query is started. The stream is not completed when it reaches the end of the currently stored events, but it continues to push new events when new events are persisted. Corresponding query that is completed when it reaches the end of the currently stored events is provided by
CurrentEventsByPersistenceIdTypedQuery.currentEventsByPersistenceIdTyped.The
fromSequenceNrandtoSequenceNrcan be used to limit what sequence numbers the returned stream will contain. Both sides are inclusive.0andLong.MaxValueare used to signify no lower/upper bound.
-