|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectca.uhn.cache.internal.impl.DefaultStaleChunkRule
Default implementation of IStaleChunkRule.
| Constructor Summary | |
DefaultStaleChunkRule(java.util.Map theVolatilityMap,
java.util.Map theUpdateAgeMap,
long theDefaultMaxAgeMillis)
|
|
| Method Summary | |
long |
getMaxAge(IChunk theChunk)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultStaleChunkRule(java.util.Map theVolatilityMap,
java.util.Map theUpdateAgeMap,
long theDefaultMaxAgeMillis)
theVolatilityMap - keys are VolatilityEnum, values are corresponding max ages since
cache time (type Long)theUpdateAgeMap - keys are Long representing age since last update time, values are
corresponding max ages since cache time (type Long)theDefaultMaxAgeMillis - age at which chunk becomes stale by default, that is if it doesn't
before stale sooner because of high volatility or recent last update| Method Detail |
public long getMaxAge(IChunk theChunk)
getMaxAge in interface IStaleChunkRuletheChunk - a chunk to be cached
IStaleChunkRule.getMaxAge(ca.uhn.cache.internal.IChunk)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||