Package com.palantir.atlasdb.cassandra
Class CassandraReloadableKeyValueServiceRuntimeConfig
- java.lang.Object
-
- com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig
-
- com.palantir.atlasdb.cassandra.CassandraReloadableKeyValueServiceRuntimeConfig
-
- All Implemented Interfaces:
com.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig
public final class CassandraReloadableKeyValueServiceRuntimeConfig extends CassandraKeyValueServiceRuntimeConfig
-
-
Field Summary
-
Fields inherited from class com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig
TYPE
-
-
Method Summary
All 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.int
concurrentGetRangesThreadPoolSize()
boolean
conservativeRequestExceptionHandler()
Setting this value to true will cause us to take a more conservative approach to retrying requests on exceptions.int
defaultGetRangesConcurrency()
CassandraKeyValueServiceRuntimeConfig
delegate()
int
fetchBatchCount()
The maximum number of rows to query for in a single call to the database when loading entire rows.int
fetchReadLimitPerRow()
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.-
Methods inherited from class com.palantir.atlasdb.cassandra.CassandraKeyValueServiceRuntimeConfig
getDefault
-
-
-
-
Method Detail
-
delegate
public CassandraKeyValueServiceRuntimeConfig delegate()
-
servers
public CassandraServersConfigs.CassandraServersConfig servers()
-
unresponsiveHostBackoffTimeSeconds
public int unresponsiveHostBackoffTimeSeconds()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The minimal period we wait to check if a Cassandra node is healthy after it's been blacklisted.
-
mutationBatchCount
public int mutationBatchCount()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The maximum amount of cells that each thread writes to Cassandra at a time.
-
mutationBatchSizeBytes
public int mutationBatchSizeBytes()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The maximum amount of bytes that each thread writes to Cassandra at a time.
-
fetchBatchCount
public int fetchBatchCount()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The maximum number of rows to query for in a single call to the database when loading entire rows.
-
sweepReadThreads
public Integer sweepReadThreads()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The number of threads Sweep uses to read values from Cassandra. Each thread fetches values from a distinct row.
-
replicationFactor
public Integer replicationFactor()
- Overrides:
replicationFactor
in classCassandraKeyValueServiceRuntimeConfig
-
concurrentGetRangesThreadPoolSize
public int concurrentGetRangesThreadPoolSize()
-
defaultGetRangesConcurrency
public int defaultGetRangesConcurrency()
-
type
public String type()
- Specified by:
type
in interfacecom.palantir.atlasdb.spi.KeyValueServiceRuntimeConfig
- Overrides:
type
in classCassandraKeyValueServiceRuntimeConfig
-
cellLoadingConfig
public CassandraCellLoadingConfig cellLoadingConfig()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
Limits on query sizes when loading cells from an underlying Cassandra key-value service.- Overrides:
cellLoadingConfig
in classCassandraKeyValueServiceRuntimeConfig
-
numberOfRetriesOnSameHost
public int numberOfRetriesOnSameHost()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The number of times a call to Cassandra retries a single host.- Overrides:
numberOfRetriesOnSameHost
in classCassandraKeyValueServiceRuntimeConfig
-
numberOfRetriesOnAllHosts
public int numberOfRetriesOnAllHosts()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
The maximum number of times a call to Cassandra retries.- Overrides:
numberOfRetriesOnAllHosts
in classCassandraKeyValueServiceRuntimeConfig
-
fetchReadLimitPerRow
public int fetchReadLimitPerRow()
- Overrides:
fetchReadLimitPerRow
in classCassandraKeyValueServiceRuntimeConfig
-
conservativeRequestExceptionHandler
public boolean conservativeRequestExceptionHandler()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
Setting this value to true will cause us to take a more conservative approach to retrying requests on exceptions.- Overrides:
conservativeRequestExceptionHandler
in classCassandraKeyValueServiceRuntimeConfig
-
tracing
public CassandraTracingConfig tracing()
Description copied from class:CassandraKeyValueServiceRuntimeConfig
Config that controls which cassandra queries will be traced. The default is nothing is traced.- Overrides:
tracing
in classCassandraKeyValueServiceRuntimeConfig
-
-