Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
com.datastax.driver.core.policies |
Policies that allow to control some of the behavior of the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
QueryOptions |
Configuration.getQueryOptions()
Returns the queries configuration.
|
QueryOptions |
QueryOptions.setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the default consistency level to use for queries.
|
QueryOptions |
QueryOptions.setDefaultIdempotence(boolean defaultIdempotence)
Sets the default idempotence for queries.
|
QueryOptions |
QueryOptions.setFetchSize(int fetchSize)
Sets the default fetch size to use for SELECT queries.
|
QueryOptions |
QueryOptions.setMaxPendingRefreshNodeListRequests(int maxPendingRefreshNodeListRequests)
Sets the maximum number of node list refresh requests that the control connection can accumulate
before executing them.
|
QueryOptions |
QueryOptions.setMaxPendingRefreshNodeRequests(int maxPendingRefreshNodeRequests)
Sets the maximum number of node refresh requests that the control connection can accumulate
before executing them.
|
QueryOptions |
QueryOptions.setMaxPendingRefreshSchemaRequests(int maxPendingRefreshSchemaRequests)
Sets the maximum number of schema refresh requests that the control connection can accumulate
before executing them.
|
QueryOptions |
QueryOptions.setMetadataEnabled(boolean enabled)
Toggle client-side token and schema metadata.
|
QueryOptions |
QueryOptions.setPrepareOnAllHosts(boolean prepareOnAllHosts)
Set whether the driver should prepare statements on all hosts in the cluster.
|
QueryOptions |
QueryOptions.setRefreshNodeIntervalMillis(int refreshNodeIntervalMillis)
Sets the default window size in milliseconds used to debounce node refresh requests.
|
QueryOptions |
QueryOptions.setRefreshNodeListIntervalMillis(int refreshNodeListIntervalMillis)
Sets the default window size in milliseconds used to debounce node list refresh requests.
|
QueryOptions |
QueryOptions.setRefreshSchemaIntervalMillis(int refreshSchemaIntervalMillis)
Sets the default window size in milliseconds used to debounce node list refresh requests.
|
QueryOptions |
QueryOptions.setReprepareOnUp(boolean reprepareOnUp)
Set whether the driver should re-prepare all cached prepared statements on a host
when it marks it back up.
|
QueryOptions |
QueryOptions.setSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)
Sets the default serial consistency level to use for queries.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withQueryOptions(QueryOptions options)
Sets the QueryOptions to use for the newly created Cluster.
|
Constructor and Description |
---|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions)
Deprecated.
this constructor is provided for backward compatibility.
|
Configuration(Policies policies,
ProtocolOptions protocolOptions,
PoolingOptions poolingOptions,
SocketOptions socketOptions,
MetricsOptions metricsOptions,
QueryOptions queryOptions,
NettyOptions nettyOptions)
Creates a configuration with the specified parameters.
|
Constructor and Description |
---|
IdempotenceAwareRetryPolicy(ExtendedRetryPolicy childPolicy,
QueryOptions queryOptions)
Creates a new instance.
|