!per #18360 Move Tagged to akka.persistence.journal
breaking api since 2.4.0-RC1, but only related to new things in 2.4 anyway
This commit is contained in:
parent
a9e7281a5f
commit
d63e5417b7
14 changed files with 66 additions and 30 deletions
|
|
@ -21,7 +21,8 @@ interface SnapshotStorePlugin {
|
|||
* @param criteria
|
||||
* selection criteria for loading.
|
||||
*/
|
||||
Future<Optional<SelectedSnapshot>> doLoadAsync(String persistenceId, SnapshotSelectionCriteria criteria);
|
||||
Future<Optional<SelectedSnapshot>> doLoadAsync(String persistenceId,
|
||||
SnapshotSelectionCriteria criteria);
|
||||
|
||||
/**
|
||||
* Java API, Plugin API: asynchronously saves a snapshot.
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
/**
|
||||
* Copyright (C) 2015 Typesafe Inc. <http://www.typesafe.com>
|
||||
*/
|
||||
package akka.persistence.journal.leveldb
|
||||
package akka.persistence.journal
|
||||
|
||||
import java.util.ArrayList
|
||||
import scala.collection.JavaConverters._
|
||||
|
||||
/**
|
||||
* The LevelDB journal supports tagging of events that are used
|
||||
* by the `EventsByTag` query. To specify the tags you create an
|
||||
* The journal may support tagging of events that are used by the
|
||||
* `EventsByTag` query and it may support specifying the tags via an
|
||||
* [[akka.persistence.journal.EventAdapter]] that wraps the events
|
||||
* in a `Tagged` with the given `tags`.
|
||||
* in a `Tagged` with the given `tags`. The journal may support other
|
||||
* ways of doing tagging. Please consult the documentation of the specific
|
||||
* journal implementation for more information.
|
||||
*
|
||||
* The journal will unwrap the event and store the `payload`.
|
||||
*/
|
||||
|
|
@ -88,7 +88,7 @@ private[persistence] object LeveldbJournal {
|
|||
* Subscribe the `sender` to changes (appended events) for a specific `tag`.
|
||||
* Used by query-side. The journal will send [[TaggedEventAppended]] messages to
|
||||
* the subscriber when `asyncWriteMessages` has been called.
|
||||
* Events are tagged by wrapping in [[akka.persistence.journal.leveldb.Tagged]]
|
||||
* Events are tagged by wrapping in [[akka.persistence.journal.Tagged]]
|
||||
* via an [[akka.persistence.journal.EventAdapter]].
|
||||
*/
|
||||
final case class SubscribeTag(tag: String) extends SubscriptionCommand
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import scala.util._
|
|||
import scala.concurrent.Future
|
||||
import scala.util.control.NonFatal
|
||||
import akka.persistence.journal.AsyncWriteJournal
|
||||
import akka.persistence.journal.Tagged
|
||||
|
||||
/**
|
||||
* INTERNAL API.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue