Akka.Persistence.Query Namespace |
Class | Description | |
---|---|---|
EventEnvelope |
Event wrapper adding meta data for the events in the result stream of
IEventsByTagQuery query, or similar queries.
| |
PersistenceQuery | ||
PersistenceQueryExtensions | ||
PersistenceQueryProvider |
Interface | Description | |
---|---|---|
IAllPersistenceIdsQuery | ||
ICurrentEventsByPersistenceIdQuery |
A plugin may optionally support this query by implementing this trait.
| |
ICurrentEventsByTagQuery |
A plugin may optionally support this query by implementing this trait.
| |
ICurrentPersistenceIdsQuery |
A plugin may optionally support this query by implementing this trait.
| |
IEventsByPersistenceIdQuery |
A plugin may optionally support this query by implementing this trait.
| |
IEventsByTagQuery |
A plugin may optionally support this query by implementing this trait.
| |
IReadJournal |
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 IEventsByPersistenceIdQuery, IAllPersistenceIdsQuery and IEventsByTagQuery Implementation of these queries are optional and query (journal) plugins may define their own specialized queries by implementing other methods.Examples
var journal = PersistenceQuery.Get(system).ReadJournalFor<SomeCoolReadJournal>(queryPluginConfigPath)
var events = journal.Query(new EventsByTag("mytag", 0L))
| |
IReadJournalProvider |
A query plugin must implement a class that implements this interface.
A read journal plugin must provide implementations for IReadJournal.
|