2015-09-14 11:08:22 +02:00
|
|
|
/**
|
2016-01-25 10:16:14 +01:00
|
|
|
* Copyright (C) 2015-2016 Typesafe Inc. <http://www.typesafe.com>
|
2015-09-14 11:08:22 +02:00
|
|
|
*/
|
|
|
|
|
package akka.persistence.query.scaladsl
|
|
|
|
|
|
2016-01-20 10:00:37 +02:00
|
|
|
import akka.NotUsed
|
2015-09-14 11:08:22 +02:00
|
|
|
import akka.stream.scaladsl.Source
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A plugin may optionally support this query by implementing this trait.
|
|
|
|
|
*/
|
|
|
|
|
trait CurrentPersistenceIdsQuery extends ReadJournal {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Same type of query as [[AllPersistenceIdsQuery#allPersistenceIds]] but the stream
|
|
|
|
|
* is completed immediately when it reaches the end of the "result set". Persistent
|
|
|
|
|
* actors that are created after the query is completed are not included in the stream.
|
|
|
|
|
*/
|
2016-01-20 10:00:37 +02:00
|
|
|
def currentPersistenceIds(): Source[String, NotUsed]
|
2015-09-14 11:08:22 +02:00
|
|
|
|
|
|
|
|
}
|