Interface CurrentEventsByPersistenceIdQuery

All Superinterfaces:
ReadJournal
All Known Implementing Classes:
LeveldbReadJournal, PersistenceTestKitReadJournal

public interface CurrentEventsByPersistenceIdQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
  • Method Summary

    Modifier and Type
    Method
    Description
    currentEventsByPersistenceId(String persistenceId, long fromSequenceNr, long toSequenceNr)
    Same type of query as pekko.persistence.query.scaladsl.EventsByPersistenceIdQuery#eventsByPersistenceId but the event stream is completed immediately when it reaches the end of the "result set".
  • Method Details

    • currentEventsByPersistenceId

      Source<EventEnvelope,NotUsed> currentEventsByPersistenceId(String persistenceId, long fromSequenceNr, long toSequenceNr)
      Same type of query as pekko.persistence.query.scaladsl.EventsByPersistenceIdQuery#eventsByPersistenceId but the event stream is completed immediately when it reaches the end of the "result set". Events that are stored after the query is completed are not included in the event stream.