MongoPersistenceDriver

pekko.contrib.persistence.mongodb.MongoPersistenceDriver
See theMongoPersistenceDriver companion object
abstract class MongoPersistenceDriver(as: ActorSystem, config: Config) extends WithMongoPersistencePluginDispatcher

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Types

type C
type D

Value members

Abstract methods

def cappedCollection(name: String): Future[C]
def closeConnections(): Unit
def collection(name: String): Future[C]
def collectionNames: Future[List[String]]
def ensureCollection(name: String): Future[C]
def ensureIndex(indexName: String, unique: Boolean, sparse: Boolean, fields: (String, Int)*): C => Future[C]
def getMongoVersionFromBuildInfo: Future[String]
def removeEmptyCollection(collection: C, indexName: String): Future[Unit]

Concrete methods

def databaseName: Option[String]
def deserializeJournal(dbo: D)(implicit ev: CanDeserializeJournal[D]): Event
def getAllCollectionsAsFuture(nameFilter: Option[String => Boolean]): Future[List[C]]
def getCollectionsAsFuture(collectionName: String): Future[List[C]]
def getJournal(persistenceId: String): Future[C]

Convenient methods to retrieve EXISTING journal collection from persistenceId. CAUTION: this method does NOT create the journal and its indexes.

Convenient methods to retrieve EXISTING journal collection from persistenceId. CAUTION: this method does NOT create the journal and its indexes.

Attributes

def getJournalCollectionName(persistenceId: String): String

Convenient methods to retrieve journal name from persistenceId

Convenient methods to retrieve journal name from persistenceId

Attributes

def getJournalCollections: Future[List[C]]
def getSnaps(persistenceId: String): Future[C]

Convenient methods to retrieve EXISTING snapshot collection from persistenceId. CAUTION: this method does NOT create the snapshot and its indexes.

Convenient methods to retrieve EXISTING snapshot collection from persistenceId. CAUTION: this method does NOT create the snapshot and its indexes.

Attributes

def getSnapsCollectionName(persistenceId: String): String

Convenient methods to retrieve snapshot name from persistenceId

Convenient methods to retrieve snapshot name from persistenceId

Attributes

def getSnapshotCollections: Future[List[C]]
def journal: Future[C]
def journal(persistenceId: String): Future[C]
def journalCollectionName: String
def journalCollectionsAsFuture: Future[List[C]]
def journalFsync: Boolean
def journalIndexName: String
def journalSeqNrIndexName: String
def journalTagIndexName: String
def journalWTimeout: FiniteDuration
def metadata: Future[C]
def metadataIndexName: String
def mongoUri: String
def removeEmptyJournal(jnl: C): Future[Unit]
def removeEmptySnapshot(snp: C): Future[Unit]
def removeJournalInCache(persistenceId: String): Unit
def removeSnapsInCache(persistenceId: String): Unit
def serializeJournal(aw: Atom)(implicit ev: CanSerializeJournal[D]): D
def snaps: Future[C]
def snaps(persistenceId: String): Future[C]
def snapsCollectionName: String
def snapsFsync: Boolean
def snapsIndexName: String
def snapsWTimeout: FiniteDuration
def snapshotCollectionsAsFuture: Future[List[C]]
def suffixBuilderClassOption: Option[String]
def suffixDropEmpty: Boolean
def suffixSeparator: String
def useLegacySerialization: Boolean

Concrete fields

val DEFAULT_DB_NAME: String

Implicits

Implicits

implicit val actorSystem: ActorSystem
implicit val materializer: Materializer

Inherited implicits

implicit lazy val pluginDispatcher: ExecutionContext

Attributes

Inherited from:
WithMongoPersistencePluginDispatcher