package scaladsl
Type Members
- trait CurrentEventsByPersistenceIdQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait CurrentEventsByTagQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait CurrentPersistenceIdsQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait DurableStateStorePagedPersistenceIdsQuery[A] extends DurableStateStore[A]
A DurableStateStore may optionally support this query by implementing this trait.
- trait DurableStateStoreQuery[A] extends DurableStateStore[A]
Query API for reading durable state objects.
Query API for reading durable state objects.
For Java API see akka.persistence.query.javadsl.DurableStateStoreQuery.
- trait EventsByPersistenceIdQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait EventsByTagQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait PagedPersistenceIdsQuery extends ReadJournal
A plugin ReadJournal may optionally support this query by implementing this trait.
- trait PersistenceIdsQuery extends ReadJournal
A plugin may optionally support this query by implementing this trait.
- trait ReadJournal extends AnyRef
API for reading persistent events and information derived from stored persistent events.
API for reading persistent events and information derived from stored persistent events.
The purpose of the API is not to enforce compatibility between different journal implementations, because the technical capabilities may be very different. The interface is very open so that different journals may implement specific queries.
There are a few pre-defined queries that a query implementation may implement, such as EventsByPersistenceIdQuery, PersistenceIdsQuery and EventsByTagQuery Implementation of these queries are optional and query (journal) plugins may define their own specialized queries by implementing other methods.
Usage:
val journal = PersistenceQuery(system).readJournalFor[SomeCoolReadJournal](queryPluginConfigPath) val events = journal.query(EventsByTag("mytag", 0L))
For Java API see akka.persistence.query.javadsl.ReadJournal.