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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConnectionConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  6. val connectTimeout: Duration
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  9. val initQueryTimeout: Duration
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val localPool: PoolConfig
  12. val maxOrphanRequests: Int
  13. val maxRequestsPerConnection: Int
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. val remotePool: PoolConfig
  19. val setKeyspaceTimeout: Duration
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. val warnOnInitError: Boolean

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped