Persistence

class Persistence(val system: ExtendedActorSystem) extends Extension

Persistence extension.

Companion:
object
Source:
Persistence.scala
trait Extension
class Object
trait Matchable
class Any

Value members

Concrete methods

final def adaptersFor(journalPluginId: String): EventAdapters

Returns an akka.persistence.journal.EventAdapters object which serves as a per-journal collection of bound event adapters. If no adapters are registered for a given journal the EventAdapters object will simply return the identity adapter for each class, otherwise the most specific adapter matching a given class will be returned.

Returns an akka.persistence.journal.EventAdapters object which serves as a per-journal collection of bound event adapters. If no adapters are registered for a given journal the EventAdapters object will simply return the identity adapter for each class, otherwise the most specific adapter matching a given class will be returned.

Source:
Persistence.scala
final def adaptersFor(journalPluginId: String, journalPluginConfig: Config): EventAdapters

Returns an akka.persistence.journal.EventAdapters object which serves as a per-journal collection of bound event adapters. If no adapters are registered for a given journal the EventAdapters object will simply return the identity adapter for each class, otherwise the most specific adapter matching a given class will be returned.

Returns an akka.persistence.journal.EventAdapters object which serves as a per-journal collection of bound event adapters. If no adapters are registered for a given journal the EventAdapters object will simply return the identity adapter for each class, otherwise the most specific adapter matching a given class will be returned.

The provided journalPluginConfig will be used to configure the plugin instead of the actor system config.

Source:
Persistence.scala
def persistenceId(persistentActor: ActorRef): String

Creates a canonical persistent actor id from a persistent actor ref.

Creates a canonical persistent actor id from a persistent actor ref.

Source:
Persistence.scala