Class PersistenceQuery
- java.lang.Object
-
- org.apache.pekko.persistence.PersistencePlugin<ReadJournal,ReadJournal,ReadJournalProvider>
-
- org.apache.pekko.persistence.query.PersistenceQuery
-
- All Implemented Interfaces:
Extension
public class PersistenceQuery extends org.apache.pekko.persistence.PersistencePlugin<ReadJournal,ReadJournal,ReadJournalProvider> implements Extension
-
-
Constructor Summary
Constructors Constructor Description PersistenceQuery(ExtendedActorSystem system)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tapply(ActorSystem system)static Tapply(ClassicActorSystemProvider system)static PersistenceQuerycreateExtension(ExtendedActorSystem system)static booleanequals(java.lang.Object other)static PersistenceQueryget(ActorSystem system)static PersistenceQueryget(ClassicActorSystemProvider system)<T extends ReadJournal>
TgetReadJournalFor(java.lang.Class<T> clazz, java.lang.String readJournalPluginId)<T extends ReadJournal>
TgetReadJournalFor(java.lang.Class<T> clazz, java.lang.String readJournalPluginId, com.typesafe.config.Config readJournalPluginConfig)Java API: Returns thepekko.persistence.query.javadsl.ReadJournalspecified by the given read journal configuration entry.static inthashCode()static PersistenceQuery$lookup()<T extends ReadJournal>
TreadJournalFor(java.lang.String readJournalPluginId)Scala API: Returns thepekko.persistence.query.scaladsl.ReadJournalspecified by the given read journal configuration entry.<T extends ReadJournal>
TreadJournalFor(java.lang.String readJournalPluginId, com.typesafe.config.Config readJournalPluginConfig)Scala API: Returns thepekko.persistence.query.scaladsl.ReadJournalspecified by the given read journal configuration entry.
-
-
-
Constructor Detail
-
PersistenceQuery
public PersistenceQuery(ExtendedActorSystem system)
-
-
Method Detail
-
get
public static PersistenceQuery get(ActorSystem system)
-
get
public static PersistenceQuery get(ClassicActorSystemProvider system)
-
createExtension
public static PersistenceQuery createExtension(ExtendedActorSystem system)
-
lookup
public static PersistenceQuery$ lookup()
-
apply
public static T apply(ActorSystem system)
-
apply
public static T apply(ClassicActorSystemProvider system)
-
hashCode
public static final int hashCode()
-
equals
public static final boolean equals(java.lang.Object other)
-
readJournalFor
public final <T extends ReadJournal> T readJournalFor(java.lang.String readJournalPluginId, com.typesafe.config.Config readJournalPluginConfig)
Scala API: Returns thepekko.persistence.query.scaladsl.ReadJournalspecified by the given read journal configuration entry.The provided readJournalPluginConfig will be used to configure the journal plugin instead of the actor system config.
-
readJournalFor
public final <T extends ReadJournal> T readJournalFor(java.lang.String readJournalPluginId)
Scala API: Returns thepekko.persistence.query.scaladsl.ReadJournalspecified by the given read journal configuration entry.
-
getReadJournalFor
public final <T extends ReadJournal> T getReadJournalFor(java.lang.Class<T> clazz, java.lang.String readJournalPluginId, com.typesafe.config.Config readJournalPluginConfig)
Java API: Returns thepekko.persistence.query.javadsl.ReadJournalspecified by the given read journal configuration entry.
-
getReadJournalFor
public final <T extends ReadJournal> T getReadJournalFor(java.lang.Class<T> clazz, java.lang.String readJournalPluginId)
-
-