public interface ReadJournalProvider
A read journal plugin must provide implementations for both
akka.persistence.query.scaladsl.ReadJournal
and akka.persistence.query.javaadsl.ReadJournal
.
The plugin must implement both the scaladsl
and the javadsl
traits because the
akka.stream.scaladsl.Source
and akka.stream.javadsl.Source
are different types
and even though those types can easily be converted to each other it is most convenient
for the end user to get access to the Java or Scala Source
directly.
One of the implementations can delegate to the other.
Modifier and Type | Method and Description |
---|---|
ReadJournal |
javadslReadJournal()
The
ReadJournal implementation for the Java API. |
ReadJournal |
scaladslReadJournal()
The
ReadJournal implementation for the Scala API. |
ReadJournal scaladslReadJournal()
ReadJournal
implementation for the Scala API.
This corresponds to the instance that is returned by PersistenceQuery.readJournalFor(java.lang.String)
.ReadJournal javadslReadJournal()
ReadJournal
implementation for the Java API.
This corresponds to the instance that is returned by PersistenceQuery.getReadJournalFor(java.lang.Class<T>, java.lang.String)
.