also fix FlowInterleaveSpec
Also-by: Johan Andrén <johan@markatta.com> Also-by: Roland Kuhn <rk@rkuhn.info> Also-by: Martynas Mickevičius <mmartynas@gmail.com>
This commit is contained in:
parent
ef77b56e66
commit
60497f6561
195 changed files with 1110 additions and 857 deletions
|
|
@ -3,6 +3,7 @@
|
|||
*/
|
||||
package docs.persistence.query
|
||||
|
||||
import akka.NotUsed
|
||||
import akka.persistence.journal.{ EventAdapter, EventSeq }
|
||||
import akka.testkit.AkkaSpec
|
||||
import akka.persistence.query.PersistenceQuery
|
||||
|
|
@ -56,10 +57,10 @@ class LeveldbPersistenceQueryDocSpec(config: String) extends AkkaSpec(config) {
|
|||
val queries = PersistenceQuery(system).readJournalFor[LeveldbReadJournal](
|
||||
LeveldbReadJournal.Identifier)
|
||||
|
||||
val src: Source[EventEnvelope, Unit] =
|
||||
val src: Source[EventEnvelope, NotUsed] =
|
||||
queries.eventsByPersistenceId("some-persistence-id", 0L, Long.MaxValue)
|
||||
|
||||
val events: Source[Any, Unit] = src.map(_.event)
|
||||
val events: Source[Any, NotUsed] = src.map(_.event)
|
||||
//#EventsByPersistenceId
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +70,7 @@ class LeveldbPersistenceQueryDocSpec(config: String) extends AkkaSpec(config) {
|
|||
val queries = PersistenceQuery(system).readJournalFor[LeveldbReadJournal](
|
||||
LeveldbReadJournal.Identifier)
|
||||
|
||||
val src: Source[String, Unit] = queries.allPersistenceIds()
|
||||
val src: Source[String, NotUsed] = queries.allPersistenceIds()
|
||||
//#AllPersistenceIds
|
||||
}
|
||||
|
||||
|
|
@ -79,7 +80,7 @@ class LeveldbPersistenceQueryDocSpec(config: String) extends AkkaSpec(config) {
|
|||
val queries = PersistenceQuery(system).readJournalFor[LeveldbReadJournal](
|
||||
LeveldbReadJournal.Identifier)
|
||||
|
||||
val src: Source[EventEnvelope, Unit] =
|
||||
val src: Source[EventEnvelope, NotUsed] =
|
||||
queries.eventsByTag(tag = "green", offset = 0L)
|
||||
//#EventsByTag
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue