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

com.rasterfoundry.backsplash.Config.scala Maven / Gradle / Ivy

There is a newer version: 1.66.2
Show newest version
package com.rasterfoundry.backsplash

import com.typesafe.config.ConfigFactory

object Config {

  private val config = ConfigFactory.load()

  object RasterSource {
    private val rasterSourceConfig = config.getConfig("rasterSource")
    val enableGDAL = rasterSourceConfig.getBoolean("enableGDAL")
  }

  object parallelism {

    /**
      * Controls the max level of concurrent effects processed with [[fs2.Stream#parEvalMap]] in
      * [[MosaicImplicits]]
      **/
    private val parallelismConfig = config.getConfig("parallelism")
    val streamConcurrency = parallelismConfig.getInt("core.streamConcurrency")
  }

  object cache {
    private val cacheConfig = config.getConfig("cache")
    val histogramCacheEnable =
      cacheConfig.getBoolean("core.histogramCacheEnable")
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy