public static final class Lazy.Checker.Default extends Object implements Lazy.Checker, Lazy.ClearingEvaluator
Lazy.lastTouched() compared to System.currentTimeMillis()
Either dimension can be deactivated by setting its configuration value to 0.
If both are non-zero, a arithmetically combined check will make clearing of a certain reference
more like the older it gets as free memory shrinks.
So, as free memory gets lower, older/passive references are cleared sooner, newer/active ones later.
Lazy.Checker.Default, Lazy.Checker.Defaults| Modifier and Type | Method and Description |
|---|---|
void |
beginCheckCycle() |
boolean |
check(Lazy<?> lazyReference) |
void |
endCheckCycle() |
static long |
graceTimeMinimum() |
static double |
memoryQuotaNoCheck() |
boolean |
needsClearing(Lazy<?> lazyReference) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidMemoryQuota, isValidTimeout, validateMemoryQuota, validateTimeoutpublic static double memoryQuotaNoCheck()
public static long graceTimeMinimum()
public final void beginCheckCycle()
beginCheckCycle in interface Lazy.Checkerpublic void endCheckCycle()
endCheckCycle in interface Lazy.Checkerpublic final boolean check(Lazy<?> lazyReference)
check in interface Lazy.CheckerlazyReference - the lazy reference to check againstpublic final boolean needsClearing(Lazy<?> lazyReference)
needsClearing in interface Lazy.ClearingEvaluatorCopyright © 2022 MicroStream Software. All rights reserved.