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

com.crobox.clickhouse.balancing.SingleHostBalancer.scala Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package com.crobox.clickhouse.balancing

import org.apache.pekko.http.scaladsl.model.Uri

import scala.concurrent.Future

/**
 * The default host balancer which always provides the same host.
  **/
case class SingleHostBalancer(host: Uri) extends HostBalancer {

  override def nextHost: Future[Uri] = Future.successful(host)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy