Package com.palantir.atlasdb.cassandra
Class CassandraKeyValueServiceRuntimeConfig
- java.lang.Object
-
- com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig
-
- All Implemented Interfaces:
com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig
- Direct Known Subclasses:
CassandraReloadableKeyValueServiceRuntimeConfig
@AutoService(com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig.class) @Immutable public abstract class CassandraKeyValueServiceRuntimeConfig extends Object implements com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig
-
-
Constructor Summary
Constructors Constructor Description CassandraKeyValueServiceRuntimeConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CassandraCellLoadingConfig
cellLoadingConfig()
Limits on query sizes when loading cells from an underlying Cassandra key-value service.boolean
conservativeRequestExceptionHandler()
Setting this value to true will cause us to take a more conservative approach to retrying requests on exceptions.int
fetchBatchCount()
The maximum number of rows to query for in a single call to the database when loading entire rows.int
fetchReadLimitPerRow()
static CassandraKeyValueServiceRuntimeConfig
getDefault()
int
mutationBatchCount()
The maximum amount of cells that each thread writes to Cassandra at a time.int
mutationBatchSizeBytes()
The maximum amount of bytes that each thread writes to Cassandra at a time.int
numberOfRetriesOnAllHosts()
The maximum number of times a call to Cassandra retries.int
numberOfRetriesOnSameHost()
The number of times a call to Cassandra retries a single host.Integer
replicationFactor()
CassandraServersConfigs.CassandraServersConfig
servers()
Integer
sweepReadThreads()
The number of threads Sweep uses to read values from Cassandra.CassandraTracingConfig
tracing()
Config that controls which cassandra queries will be traced.String
type()
int
unresponsiveHostBackoffTimeSeconds()
The minimal period we wait to check if a Cassandra node is healthy after it's been blacklisted.
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public String type()
- Specified by:
type
in interfacecom.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig
-
servers
@Default public CassandraServersConfigs.CassandraServersConfig servers()
-
replicationFactor
@Default public Integer replicationFactor()
-
unresponsiveHostBackoffTimeSeconds
@Default public int unresponsiveHostBackoffTimeSeconds()
The minimal period we wait to check if a Cassandra node is healthy after it's been blacklisted.
-
mutationBatchCount
@Default public int mutationBatchCount()
The maximum amount of cells that each thread writes to Cassandra at a time.
-
mutationBatchSizeBytes
@Default public int mutationBatchSizeBytes()
The maximum amount of bytes that each thread writes to Cassandra at a time.
-
fetchBatchCount
@Default public int fetchBatchCount()
The maximum number of rows to query for in a single call to the database when loading entire rows.
-
cellLoadingConfig
@Default public CassandraCellLoadingConfig cellLoadingConfig()
Limits on query sizes when loading cells from an underlying Cassandra key-value service.
-
sweepReadThreads
@Default public Integer sweepReadThreads()
The number of threads Sweep uses to read values from Cassandra. Each thread fetches values from a distinct row.
-
numberOfRetriesOnSameHost
@Default public int numberOfRetriesOnSameHost()
The number of times a call to Cassandra retries a single host.
-
numberOfRetriesOnAllHosts
@Default public int numberOfRetriesOnAllHosts()
The maximum number of times a call to Cassandra retries.
-
fetchReadLimitPerRow
@Default public int fetchReadLimitPerRow()
-
conservativeRequestExceptionHandler
@Default public boolean conservativeRequestExceptionHandler()
Setting this value to true will cause us to take a more conservative approach to retrying requests on exceptions.
-
tracing
@Default public CassandraTracingConfig tracing()
Config that controls which cassandra queries will be traced. The default is nothing is traced.
-
getDefault
public static CassandraKeyValueServiceRuntimeConfig getDefault()
-
-