BasicRequestConfig

final case class BasicRequestConfig(timeout: Duration, consistency: ConsistencyLevel, pageSize: Int, serialConsistency: ConsistencyLevel, defaultIdempotence: Boolean)

Request configuration.

Value parameters:
consistency

The consistency level. Overridable in a profile.

defaultIdempotence

The default idempotence of a request, that will be used for all Request instances where isIdempotent() returns null. Overridable in a profile.

pageSize

The page size. This controls how many rows will be retrieved simultaneously in a single network roundtrip (the goal being to avoid loading too many results in memory at the same time). If there are more results, additional requests will be used to retrieve them (either automatically if you iterate with the sync API, or explicitly with the async API's fetchNextPage method). If the value is 0 or negative, it will be ignored and the request will not be paged. Overridable in a profile.

serialConsistency

The serial consistency level. The allowed values are SERIAL and LOCAL_SERIAL. Overridable in a profile.

timeout

How long the driver waits for a request to complete. This is a global limit on the duration of a session.execute() call, including any internal retries the driver might do. By default, this value is set pretty high to ensure that DDL queries don't time out, in order to provide the best experience for new users trying the driver with the out-of-the-box configuration. For any serious deployment, we recommend that you use separate configuration profiles for DDL and DML; you can then set the DML timeout much lower (down to a few milliseconds if needed). Note that, because timeouts are scheduled on the driver's timer thread, the duration specified here must be greater than the timer tick duration defined by the advanced.netty.timer.tick-duration setting (see below). If that is not the case, timeouts will not be triggered as timely as desired. Overridable in a profile.

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