Skip navigation links 
 
com.tangosol.net.cache
Class CompactSerializationCache.LFUEvictionPolicy
java.lang.Object
   com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
       com.tangosol.net.cache.CompactSerializationCache.LFUEvictionPolicy
com.tangosol.net.cache.CompactSerializationCache.LFUEvictionPolicy
- All Implemented Interfaces:
- ConfigurableCacheMap.EvictionPolicy
- Enclosing class:
- CompactSerializationCache
- 
protected class CompactSerializationCache.LFUEvictionPolicy
 
- extends CompactSerializationCache.InternalEvictionPolicy
An EvictionPolicy implementing the Least Frequently Used (LFU) algorithm.
 
 
  
 
 
  
 
  
 
 
 
 
f_visitor
protected final CompactSerializationCache.TouchCountVisitor f_visitor
- The singleton TouchCountVisitor (eviction is single-threaded).
CompactSerializationCache.LFUEvictionPolicy
protected CompactSerializationCache.LFUEvictionPolicy()
calculateWeight
protected long calculateWeight(Binary binKey)
- Calculate the "weight" of the entry associated with the specified key. The weight is a quantitative measure of how to prioritize the eviction of this entry w.r.t. the other cache entries. Entries with a smaller weights are of higher priority and are preferred over entries with larger weights for eviction.
- 
- Specified by:
- calculateWeightin class- CompactSerializationCache.InternalEvictionPolicy
 
- 
- Parameters:
- binKey- the key to calculate the weight for
 
getConfiguredPolicy
protected ConfigurableCacheMap.EvictionPolicy getConfiguredPolicy()
- Return the configuredEvictionPolicy instance.
- 
- Specified by:
- getConfiguredPolicyin class- CompactSerializationCache.InternalEvictionPolicy
 
- 
- Returns:
- the configured EvictionPolicy
 
Skip navigation links 
 
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.