Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.cache
Class CompactSerializationCache.LRUEvictionPolicy

java.lang.Object
  extended by com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
      extended by com.tangosol.net.cache.CompactSerializationCache.LRUEvictionPolicy

All Implemented Interfaces:
ConfigurableCacheMap.EvictionPolicy
Enclosing class:
CompactSerializationCache

protected class CompactSerializationCache.LRUEvictionPolicy
extends CompactSerializationCache.InternalEvictionPolicy

An EvictionPolicy implementing the Least Recently Used (LRU) algorithm.


Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate, CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor

 

Field Summary

 

Fields inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
f_visitorTouchCount, f_visitorTouchTime, m_ldtLastEvict

 

Constructor Summary
protected CompactSerializationCache.LRUEvictionPolicy()
           

 

Method Summary
protected  long calculateWeight(Binary binKey)
          Calculate the "weight" of the entry associated with the specified key.
protected  ConfigurableCacheMap.EvictionPolicy getConfiguredPolicy()
          Return the configured EvictionPolicy instance.

 

Methods inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
entryTouched, entryTouched, getName, requestEviction, touchInternal

 

Constructor Detail

CompactSerializationCache.LRUEvictionPolicy

protected CompactSerializationCache.LRUEvictionPolicy()

Method Detail

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:
calculateWeight in class CompactSerializationCache.InternalEvictionPolicy
Parameters:
binKey - the key to calculate the weight for

getConfiguredPolicy

protected ConfigurableCacheMap.EvictionPolicy getConfiguredPolicy()
Return the configured EvictionPolicy instance.
Specified by:
getConfiguredPolicy in class CompactSerializationCache.InternalEvictionPolicy
Returns:
the configured EvictionPolicy

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.