public static class HeapCache.Tunable extends TunableConstants
Modifier and Type | Field and Description |
---|---|
StandardCommonMetricsFactory |
commonMetricsFactory |
Class<? extends InternalCache> |
defaultImplementation |
boolean |
disableHashRandomization
The hash code will randomized by default.
|
ExceptionPropagator |
exceptionPropagator |
int |
hashLoadPercent
Fill percentage limit.
|
int |
hashQualityErrorThreshold
Alert level error, when hash quality is below this threshold.
|
int |
hashQualityWarningThreshold
Alert level error, when hash quality is below this threshold.
|
int |
hashSeed
Seed used when randomization is disabled.
|
int |
initialHashSize
Size of the hash table before inserting the first entry.
|
int |
loaderThreadCountCpuFactor
Number of maximum loader threads, depending on the CPUs.
|
int |
minimumStatisticsCreationDeltaMillis
Some statistic values need processing time to gather and compute it.
|
int |
minimumStatisticsCreationTimeDeltaFactor
Factor of the statistics creation time, that determines the time difference when new
statistics are generated.
|
int |
segmentCountOverride
Override parameter for segment count.
|
long |
sharpExpirySafetyGapMillis
When sharp expiry is enabled, the expiry timer goes
before the actual expiry to switch back to a time checking
scheme when the cache is accessed.
|
ThreadFactoryProvider |
threadFactoryProvider |
Constructor and Description |
---|
Tunable() |
public Class<? extends InternalCache> defaultImplementation
public int initialHashSize
public int hashLoadPercent
public boolean disableHashRandomization
public int hashSeed
public long sharpExpirySafetyGapMillis
OS scheduling is not reliable on virtual servers (e.g. KVM) to give the expiry task compute time on a busy server. To be safe in extreme cases, this parameter is set to a high value.
public int minimumStatisticsCreationDeltaMillis
public int minimumStatisticsCreationTimeDeltaFactor
public ThreadFactoryProvider threadFactoryProvider
public int loaderThreadCountCpuFactor
public StandardCommonMetricsFactory commonMetricsFactory
public ExceptionPropagator exceptionPropagator
public int hashQualityWarningThreshold
public int hashQualityErrorThreshold
public int segmentCountOverride
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.