ScalaMongoDriver

pekko.contrib.persistence.mongodb.driver.ScalaMongoDriver
class ScalaMongoDriver(system: ActorSystem, config: Config) extends MongoPersistenceDriver

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

override type C = MongoCollection[BsonDocument]
override type D = BsonDocument

Value members

Concrete methods

override def cappedCollection(name: String): Future[C]

Attributes

Definition Classes
override def closeConnections(): Unit

Attributes

Definition Classes
override def collection(name: String): Future[C]

Attributes

Definition Classes
override def collectionNames: Future[List[String]]

Attributes

Definition Classes
override def ensureCollection(name: String): Future[C]

Attributes

Definition Classes
override def ensureIndex(indexName: String, unique: Boolean, sparse: Boolean, fields: (String, Int)*): C => Future[C]

Attributes

Definition Classes
override def getMongoVersionFromBuildInfo: Future[String]

Attributes

Definition Classes
def journalWriteConcern: WriteConcern
def metadataWriteConcern: WriteConcern
override def removeEmptyCollection(collection: MongoCollection[D], indexName: String): Future[Unit]

Attributes

Definition Classes
def snapsWriteConcern: WriteConcern

Inherited methods

def databaseName: Option[String]

Attributes

Inherited from:
MongoPersistenceDriver
def deserializeJournal(dbo: D)(implicit ev: CanDeserializeJournal[D]): Event

Attributes

Inherited from:
MongoPersistenceDriver
def getAllCollectionsAsFuture(nameFilter: Option[String => Boolean]): Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
def getCollectionsAsFuture(collectionName: String): Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
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

Inherited from:
MongoPersistenceDriver
def getJournalCollectionName(persistenceId: String): String

Convenient methods to retrieve journal name from persistenceId

Convenient methods to retrieve journal name from persistenceId

Attributes

Inherited from:
MongoPersistenceDriver
def getJournalCollections: Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
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

Inherited from:
MongoPersistenceDriver
def getSnapsCollectionName(persistenceId: String): String

Convenient methods to retrieve snapshot name from persistenceId

Convenient methods to retrieve snapshot name from persistenceId

Attributes

Inherited from:
MongoPersistenceDriver
def getSnapshotCollections: Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
def journal(persistenceId: String): Future[C]

Attributes

Inherited from:
MongoPersistenceDriver
def journal: Future[C]

Attributes

Inherited from:
MongoPersistenceDriver
def journalCollectionName: String

Attributes

Inherited from:
MongoPersistenceDriver
def journalCollectionsAsFuture: Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
def journalFsync: Boolean

Attributes

Inherited from:
MongoPersistenceDriver
def journalIndexName: String

Attributes

Inherited from:
MongoPersistenceDriver
def journalSeqNrIndexName: String

Attributes

Inherited from:
MongoPersistenceDriver
def journalTagIndexName: String

Attributes

Inherited from:
MongoPersistenceDriver
def journalWTimeout: FiniteDuration

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver
def metadata: Future[C]

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver
def metadataIndexName: String

Attributes

Inherited from:
MongoPersistenceDriver
def mongoUri: String

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver
def removeEmptyJournal(jnl: C): Future[Unit]

Attributes

Inherited from:
MongoPersistenceDriver
def removeEmptySnapshot(snp: C): Future[Unit]

Attributes

Inherited from:
MongoPersistenceDriver
def removeJournalInCache(persistenceId: String): Unit

Attributes

Inherited from:
MongoPersistenceDriver
def removeSnapsInCache(persistenceId: String): Unit

Attributes

Inherited from:
MongoPersistenceDriver
def serializeJournal(aw: Atom)(implicit ev: CanSerializeJournal[D]): D

Attributes

Inherited from:
MongoPersistenceDriver
def snaps(persistenceId: String): Future[C]

Attributes

Inherited from:
MongoPersistenceDriver
def snaps: Future[C]

Attributes

Inherited from:
MongoPersistenceDriver
def snapsCollectionName: String

Attributes

Inherited from:
MongoPersistenceDriver
def snapsFsync: Boolean

Attributes

Inherited from:
MongoPersistenceDriver
def snapsIndexName: String

Attributes

Inherited from:
MongoPersistenceDriver
def snapsWTimeout: FiniteDuration

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver
def snapshotCollectionsAsFuture: Future[List[C]]

Attributes

Inherited from:
MongoPersistenceDriver
def suffixBuilderClassOption: Option[String]

Attributes

Inherited from:
MongoPersistenceDriver
def suffixDropEmpty: Boolean

Attributes

Inherited from:
MongoPersistenceDriver
def suffixSeparator: String

Attributes

Inherited from:
MongoPersistenceDriver
def useLegacySerialization: Boolean

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver

Concrete fields

lazy val client: MongoClient
lazy val db: MongoDatabase
val mongoClientSettings: MongoClientSettings

Inherited fields

val DEFAULT_DB_NAME: String

Attributes

Inherited from:
MongoPersistenceDriver

Attributes

Inherited from:
MongoPersistenceDriver

Implicits

Inherited implicits

implicit val actorSystem: ActorSystem

Attributes

Inherited from:
MongoPersistenceDriver
implicit val materializer: Materializer

Attributes

Inherited from:
MongoPersistenceDriver
implicit lazy val pluginDispatcher: ExecutionContext

Attributes

Inherited from:
WithMongoPersistencePluginDispatcher