Function cdrs::cluster::session::new

source ·
pub fn new<A, LB>(
    node_configs: &ClusterTcpConfig<'static, A>,
    load_balancing: LB
) -> Result<Session<LB>>where
    A: Authenticator + 'static + Sized,
    LB: LoadBalancingStrategy<TcpConnectionPool<A>> + Sized,
Expand description

Creates new session that will perform queries without any compression. Compression type can be changed at any time. As a parameter it takes:

  • cluster config
  • load balancing strategy (cannot be changed during Session life time).