Class Persistence

  • All Implemented Interfaces:
    Extension

    public class Persistence
    extends java.lang.Object
    implements Extension
    Persistence extension.
    • Method Detail

      • JournalFallbackConfigPath

        public static java.lang.String JournalFallbackConfigPath()
        Config path to fall-back to if a setting is not defined in a specific plugin's config section
      • SnapshotStoreFallbackConfigPath

        public static java.lang.String SnapshotStoreFallbackConfigPath()
        Config path to fall-back to if a setting is not defined in a specific snapshot plugin's config section
      • apply

        public static T apply​(ActorSystem system)
      • hashCode

        public static final int hashCode()
      • equals

        public static final boolean equals​(java.lang.Object other)
      • defaultInternalStashOverflowStrategy

        public StashOverflowStrategy defaultInternalStashOverflowStrategy()
      • adaptersFor

        public final EventAdapters adaptersFor​(java.lang.String journalPluginId)
        Returns an 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.
      • adaptersFor

        public final EventAdapters adaptersFor​(java.lang.String journalPluginId,
                                               com.typesafe.config.Config journalPluginConfig)
        Returns an 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.

      • persistenceId

        public java.lang.String persistenceId​(ActorRef persistentActor)
        Creates a canonical persistent actor id from a persistent actor ref.