[−][src]Function cdrs_temp::cluster::session::new
pub fn new<'a, A, LB>(
node_configs: &ClusterTcpConfig<'a, A>,
load_balancing: LB
) -> Result<Session<LB>> where
A: Authenticator + 'static + Sized,
LB: LoadBalancingStrategy<TcpConnectionPool<A>> + Sized,
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).