Package | Description |
---|---|
com.datastax.driver.core.schemabuilder |
A CQL3 schema builder.
|
Modifier and Type | Method and Description |
---|---|
static TableOptions.SpeculativeRetryValue |
SchemaBuilder.always()
Create the speculative retry strategy that retries reads of all replicas, to use in a CREATE or ALTER TABLE statement.
|
static TableOptions.SpeculativeRetryValue |
SchemaBuilder.millisecs(int millisecs)
Create the speculative retry strategy that retries after a given delay, to use in a CREATE or ALTER TABLE statement.
|
static TableOptions.SpeculativeRetryValue |
SchemaBuilder.noSpeculativeRetry()
Create the speculative retry strategy that never retries reads, to use in a CREATE or ALTER TABLE statement.
|
static TableOptions.SpeculativeRetryValue |
SchemaBuilder.percentile(int percentile)
Create the speculative retry strategy that retries based on the effect on throughput and latency,
to use in a CREATE or ALTER TABLE statement.
|
Modifier and Type | Method and Description |
---|---|
T |
TableOptions.speculativeRetry(TableOptions.SpeculativeRetryValue speculativeRetry)
To override normal read timeout when read_repair_chance is not 1.0, sending another request to read, choose one of these values and use the property to create
or alter the table:
ALWAYS: Retry reads of all replicas.
Xpercentile: Retry reads based on the effect on throughput and latency.
Yms: Retry reads after specified milliseconds.
NONE: Do not retry reads.
Using the speculative retry property, you can configure rapid read protection in Cassandra 2.0.2 and later.
|
Copyright © 2012–2018. All rights reserved.