Skip navigation links 
 
com.tangosol.net.cache
Class CompactSerializationCache.HybridEvictionPolicy
java.lang.Object
   com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
       com.tangosol.net.cache.CompactSerializationCache.HybridEvictionPolicy
com.tangosol.net.cache.CompactSerializationCache.HybridEvictionPolicy
- All Implemented Interfaces:
- ConfigurableCacheMap.EvictionPolicy
- Enclosing class:
- CompactSerializationCache
- 
protected class CompactSerializationCache.HybridEvictionPolicy
 
- extends CompactSerializationCache.InternalEvictionPolicy
The EvictionPolicy object for the Hybrid eviction algorithm.
 
 
  
 
 
  
 
  
 
 
 
 
m_cTouchesAvg
protected transient int m_cTouchesAvg
- The average number of touches that each entry in the cache has. Used during the iteration (evict-set calculation) only.
f_visitor
protected final CompactSerializationCache.TouchCountVisitor f_visitor
- The singleton TouchCountVisitor (eviction is single-threaded).
CompactSerializationCache.HybridEvictionPolicy
protected CompactSerializationCache.HybridEvictionPolicy()
requestEviction
public void requestEviction(int cMaximum)
- This method is called by the cache when the cache requires the eviction policy to evict entries.
- 
- Specified by:
- requestEvictionin interface- ConfigurableCacheMap.EvictionPolicy
- Overrides:
- requestEvictionin class- CompactSerializationCache.InternalEvictionPolicy
 
- 
- Parameters:
- cMaximum- the maximum number of units that should remain in the cache when the eviction is complete
 
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.