public class VersionGCOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
long |
collectLimit |
double |
delayFactor |
long |
maxDurationMs |
int |
maxIterations |
int |
overflowToDiskThreshold |
long |
precisionMs |
| Constructor and Description |
|---|
VersionGCOptions() |
| Modifier and Type | Method and Description |
|---|---|
VersionGCOptions |
withCollectLimit(long limit)
Sets the absolute limit on number of resource ids collected in one run.
|
VersionGCOptions |
withDelayFactor(double f)
Set a delay factor between batched database modifications.
|
VersionGCOptions |
withMaxDuration(TimeUnit unit,
long t)
Set the maximum duration in elapsed time that the garbage collection shall take.
|
VersionGCOptions |
withMaxIterations(int max)
Set the maximum number of iterations that shall be attempted in a single run.
|
VersionGCOptions |
withOverflowToDiskThreshold(int overflowToDiskThreshold)
Set the limit of number of resource id+_modified strings (not length) held in memory during
a collection run.
|
VersionGCOptions |
withPrecisionMs(TimeUnit unit,
long t)
Set the minimum duration that is used for time based searches.
|
public final int overflowToDiskThreshold
public final long collectLimit
public final long precisionMs
public final int maxIterations
public final long maxDurationMs
public final double delayFactor
public VersionGCOptions withOverflowToDiskThreshold(int overflowToDiskThreshold)
overflowToDiskThreshold - limit after which to use file based storage for candidate idspublic VersionGCOptions withCollectLimit(long limit)
precisionMs, the collection limit will be ignored.limit - the absolute limit of resources collected in one runpublic VersionGCOptions withPrecisionMs(TimeUnit unit, long t)
collectLimit will not take effect for runs
that query equal or shorter than precision duration.unit - time unit used for durationt - the number of units in the durationpublic VersionGCOptions withMaxDuration(TimeUnit unit, long t)
withMaxIterations(int) on how to control the behaviour.unit - time unit used for durationt - the number of units in the durationpublic VersionGCOptions withMaxIterations(int max)
max - the maximum number of iterations allowedpublic VersionGCOptions withDelayFactor(double f)
For factory > 0, the actual delay is the duration of the last batch modification times the factor. Example: 0.25 would result in a 25% delay, e.g. a batch modification running 10 seconds would be followed by a sleep of 2.5 seconds.
f - the factor used to calculate batch modification delaysCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.