ConnectionConfig

final case class ConnectionConfig(connectTimeout: Duration, initQueryTimeout: Duration, setKeyspaceTimeout: Duration, localPool: PoolConfig, remotePool: PoolConfig, maxRequestsPerConnection: Int, maxOrphanRequests: Int, warnOnInitError: Boolean)

Configure query connection properties.

Value parameters:
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.

localPool

The driver maintains a connection pool to each node

maxOrphanRequests

The maximum number of "orphaned" requests before a connection gets closed automatically.

maxRequestsPerConnection

The maximum number of requests that can be executed concurrently on a connection. This must be between 1 and 32768.

remotePool

The driver maintains a connection pool to each node

setKeyspaceTimeout

The timeout to use when the driver changes the keyspace on a connection at runtime.

warnOnInitError

Whether to log non-fatal errors when the driver tries to open a new connection.

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product