Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Node.js Driver. Switch to the latest stable version.
policies¶
Contains driver tuning policies to determine load balancing, retrying queries, reconnecting to a node, address resolution, timestamp generation and speculative execution.
Methods¶
(inner) defaultAddressTranslator()
Returns a new instance of the default address translator policy used by the driver.
(inner) defaultLoadBalancingPolicy(localDc)
Returns a new instance of the default load-balancing policy used by the driver.
Parameters:
| Name | Type | Description |
|---|---|---|
localDc |
When provided, it explicitly sets the data center that is going to be used as local for the
load-balancing policy instance, with dc failover disabled. This value takes precedence over
When |
(inner) defaultReconnectionPolicy()
Returns a new instance of the default reconnection policy used by the driver.
(inner) defaultRetryPolicy()
Returns a new instance of the default retry policy used by the driver.
(inner) defaultSpeculativeExecutionPolicy()
Returns a new instance of the default speculative execution policy used by the driver.
(inner) defaultTimestampGenerator()
Returns a new instance of the default timestamp generator used by the driver.