Package akka.persistence
Class Persistence
- java.lang.Object
- 
- akka.persistence.Persistence
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPersistence.PluginHolder$
 - 
Constructor SummaryConstructors Constructor Description Persistence(ExtendedActorSystem system)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventAdaptersadaptersFor(java.lang.String journalPluginId)Returns anEventAdaptersobject which serves as a per-journal collection of bound event adapters.EventAdaptersadaptersFor(java.lang.String journalPluginId, com.typesafe.config.Config journalPluginConfig)Returns anEventAdaptersobject which serves as a per-journal collection of bound event adapters.static Tapply(ActorSystem system)static Tapply(ClassicActorSystemProvider system)static PersistencecreateExtension(ExtendedActorSystem system)StashOverflowStrategydefaultInternalStashOverflowStrategy()static booleanequals(java.lang.Object other)static Persistenceget(ActorSystem system)Java API.static Persistenceget(ClassicActorSystemProvider system)java.util.List<Pair<java.lang.Integer,java.lang.Integer>>getSliceRanges(int numberOfRanges)Java API: Split the total number of slices into ranges by the givennumberOfRanges.static inthashCode()static java.lang.StringJournalFallbackConfigPath()Config path to fall-back to if a setting is not defined in a specific plugin's config sectionstatic Persistence$lookup()intnumberOfSlices()A slice is deterministically defined based on the persistence id.java.lang.StringpersistenceId(ActorRef persistentActor)Creates a canonical persistent actor id from a persistent actor ref.PersistenceSettingssettings()intsliceForPersistenceId(java.lang.String persistenceId)A slice is deterministically defined based on the persistence id.scala.collection.immutable.IndexedSeq<scala.collection.immutable.Range>sliceRanges(int numberOfRanges)Scala API: Split the total number of slices into ranges by the givennumberOfRanges.static java.lang.StringSnapshotStoreFallbackConfigPath()Config path to fall-back to if a setting is not defined in a specific snapshot plugin's config sectionExtendedActorSystemsystem()
 
- 
- 
- 
Constructor Detail- 
Persistencepublic Persistence(ExtendedActorSystem system) 
 
- 
 - 
Method Detail- 
getpublic static Persistence get(ActorSystem system) Java API.
 - 
getpublic static Persistence get(ClassicActorSystemProvider system) 
 - 
createExtensionpublic static Persistence createExtension(ExtendedActorSystem system) 
 - 
lookuppublic static Persistence$ lookup() 
 - 
JournalFallbackConfigPathpublic static java.lang.String JournalFallbackConfigPath() Config path to fall-back to if a setting is not defined in a specific plugin's config section
 - 
SnapshotStoreFallbackConfigPathpublic 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
 - 
applypublic static T apply(ActorSystem system) 
 - 
applypublic static T apply(ClassicActorSystemProvider system) 
 - 
hashCodepublic static final int hashCode() 
 - 
equalspublic static final boolean equals(java.lang.Object other) 
 - 
systempublic ExtendedActorSystem system() 
 - 
defaultInternalStashOverflowStrategypublic StashOverflowStrategy defaultInternalStashOverflowStrategy() 
 - 
settingspublic PersistenceSettings settings() 
 - 
adaptersForpublic final EventAdapters adaptersFor(java.lang.String journalPluginId) Returns anEventAdaptersobject 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.
 - 
adaptersForpublic final EventAdapters adaptersFor(java.lang.String journalPluginId, com.typesafe.config.Config journalPluginConfig) Returns anEventAdaptersobject 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. 
 - 
persistenceIdpublic java.lang.String persistenceId(ActorRef persistentActor) Creates a canonical persistent actor id from a persistent actor ref.
 - 
numberOfSlicespublic final int numberOfSlices() A slice is deterministically defined based on the persistence id.numberOfSlicesis not configurable because changing the value would result in different slice for a persistence id than what was used before, which would result in invalid eventsBySlices.numberOfSlicesis 1024
 - 
sliceForPersistenceIdpublic final int sliceForPersistenceId(java.lang.String persistenceId) A slice is deterministically defined based on the persistence id. The purpose is to evenly distribute all persistence ids over the slices and be able to query the events for a range of slices.
 - 
sliceRangespublic final scala.collection.immutable.IndexedSeq<scala.collection.immutable.Range> sliceRanges(int numberOfRanges) Scala API: Split the total number of slices into ranges by the givennumberOfRanges.For example, numberOfSlicesis 1024 and given 4numberOfRangesthis method will return ranges (0 to 255), (256 to 511), (512 to 767) and (768 to 1023).
 - 
getSliceRangespublic final java.util.List<Pair<java.lang.Integer,java.lang.Integer>> getSliceRanges(int numberOfRanges) Java API: Split the total number of slices into ranges by the givennumberOfRanges.For example, numberOfSlicesis 128 and given 4numberOfRangesthis method will return ranges (0 to 255), (256 to 511), (512 to 767) and (768 to 1023).
 
- 
 
-