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

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

package com.crobox.clickhouse.balancing

object Connection {

  sealed trait ConnectionType

  object ConnectionType {

    def apply(connectionType: String): ConnectionType =
      connectionType match {
        case "single-host"     => SingleHost
        case "balancing-hosts" => BalancingHosts
        case "cluster-aware"   => ClusterAware
      }
  }

  case object SingleHost extends ConnectionType

  case object BalancingHosts extends ConnectionType

  case object ClusterAware extends ConnectionType

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy