All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.persistence.common.SQLAsyncConfig.scala Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
package akka.persistence.common

import akka.actor.ActorSystem

private[persistence] class SQLAsyncConfig(val system: ActorSystem) {
  val rootKey = "akka-persistence-sql-async"
  val config = system.settings.config.getConfig(rootKey)

  val user = config.getString("user")
  val password = config.getString("password")
  val url = config.getString("url")
  val maxPoolSize = config.getInt("max-pool-size")
  val waitQueueCapacity = config.getInt("wait-queue-capacity")

  val metadataTableName = config.getString("metadata-table-name")
  val journalTableName = config.getString("journal-table-name")
  val snapshotTableName = config.getString("snapshot-table-name")
}

private[persistence] object SQLAsyncConfig {
  def apply(system: ActorSystem): SQLAsyncConfig = new SQLAsyncConfig(system)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy