Click or drag to resize
Akka.NETIReadJournal Interface
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))

Namespace:  Akka.Persistence.Query
Assembly:  Akka.Persistence.Query (in Akka.Persistence.Query.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public interface IReadJournal
See Also