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

akka.projection.cassandra.internal.CassandraSettings.scala Maven / Gradle / Ivy

There is a newer version: 1.5.0-M4
Show newest version
/*
 * Copyright (C) 2020 Lightbend Inc. 
 */

package akka.projection.cassandra.internal

import akka.actor.typed.ActorSystem
import akka.annotation.InternalApi
import com.typesafe.config.Config

/**
 * INTERNAL API
 */
@InternalApi
private[projection] case class CassandraSettings(config: Config) {
  val keyspace: String = config.getString("offset-store.keyspace")
  val table: String = config.getString("offset-store.table")
  val sessionConfigPath: String = config.getString("session-config-path")
  val profile: String = "akka-projection-cassandra-profile"
}

/**
 * INTERNAL API
 */
@InternalApi
private[projection] object CassandraSettings {

  def apply(system: ActorSystem[_]): CassandraSettings =
    CassandraSettings(system.settings.config.getConfig("akka.projection.cassandra"))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy