final case class ConnectionConfig(connectTimeout: Duration = ConnectionConfig.Default.connectTimeout, initQueryTimeout: Duration = ConnectionConfig.Default.initQueryTimeout, setKeyspaceTimeout: Duration = ConnectionConfig.Default.setKeyspaceTimeout, localPool: PoolConfig = ConnectionConfig.Default.localPool, remotePool: PoolConfig = ConnectionConfig.Default.remotePool, maxRequestsPerConnection: Int = ConnectionConfig.Default.maxRequestsPerConnection, maxOrphanRequests: Int = ConnectionConfig.Default.maxOrphanRequests, warnOnInitError: Boolean = ConnectionConfig.Default.warnOnInitError) extends Product with Serializable
Configure query connection properties.
- initQueryTimeout
The timeout to use for internal queries that run as part of the initialization process. If this timeout fires, the initialization of the connection will fail. If this is the first connection ever, the driver will fail to initialize as well, otherwise it will retry the connection later.
- setKeyspaceTimeout
The timeout to use when the driver changes the keyspace on a connection at runtime.
- localPool
The driver maintains a connection pool to each node
- remotePool
The driver maintains a connection pool to each node
- maxRequestsPerConnection
The maximum number of requests that can be executed concurrently on a connection. This must be between 1 and 32768.
- maxOrphanRequests
The maximum number of "orphaned" requests before a connection gets closed automatically.
- warnOnInitError
Whether to log non-fatal errors when the driver tries to open a new connection.
- Alphabetic
- By Inheritance
- ConnectionConfig
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ConnectionConfig(connectTimeout: Duration = ConnectionConfig.Default.connectTimeout, initQueryTimeout: Duration = ConnectionConfig.Default.initQueryTimeout, setKeyspaceTimeout: Duration = ConnectionConfig.Default.setKeyspaceTimeout, localPool: PoolConfig = ConnectionConfig.Default.localPool, remotePool: PoolConfig = ConnectionConfig.Default.remotePool, maxRequestsPerConnection: Int = ConnectionConfig.Default.maxRequestsPerConnection, maxOrphanRequests: Int = ConnectionConfig.Default.maxOrphanRequests, warnOnInitError: Boolean = ConnectionConfig.Default.warnOnInitError)
- initQueryTimeout
The timeout to use for internal queries that run as part of the initialization process. If this timeout fires, the initialization of the connection will fail. If this is the first connection ever, the driver will fail to initialize as well, otherwise it will retry the connection later.
- setKeyspaceTimeout
The timeout to use when the driver changes the keyspace on a connection at runtime.
- localPool
The driver maintains a connection pool to each node
- remotePool
The driver maintains a connection pool to each node
- maxRequestsPerConnection
The maximum number of requests that can be executed concurrently on a connection. This must be between 1 and 32768.
- maxOrphanRequests
The maximum number of "orphaned" requests before a connection gets closed automatically.
- warnOnInitError
Whether to log non-fatal errors when the driver tries to open a new connection.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- val connectTimeout: Duration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val initQueryTimeout: Duration
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val localPool: PoolConfig
- val maxOrphanRequests: Int
- val maxRequestsPerConnection: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val remotePool: PoolConfig
- val setKeyspaceTimeout: Duration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val warnOnInitError: Boolean