com.atlassian.confluence.cache.tangosol
Class HitTrackingLocalCache

java.lang.Object
  extended by java.util.AbstractMap
      extended by com.tangosol.util.SafeHashMap
          extended by com.tangosol.net.cache.OldCache
              extended by com.tangosol.net.cache.LocalCache
                  extended by com.atlassian.confluence.cache.tangosol.HitTrackingLocalCache
All Implemented Interfaces:
com.tangosol.net.cache.CacheMap, com.tangosol.util.ObservableMap, Serializable, Cloneable, Map

public class HitTrackingLocalCache
extends com.tangosol.net.cache.LocalCache

Created by IntelliJ IDEA. User: cowen Date: 23/05/2006 Time: 12:15:04 To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Nested Class Summary
static class HitTrackingLocalCache.HitCounter
           
 
Nested classes/interfaces inherited from class com.tangosol.net.cache.LocalCache
com.tangosol.net.cache.LocalCache.Entry, com.tangosol.net.cache.LocalCache.InternalListener, com.tangosol.net.cache.LocalCache.KeyMask
 
Nested classes/interfaces inherited from class com.tangosol.net.cache.OldCache
com.tangosol.net.cache.OldCache.EntrySet, com.tangosol.net.cache.OldCache.EvictionPolicy, com.tangosol.net.cache.OldCache.KeySet, com.tangosol.net.cache.OldCache.UnitCalculator, com.tangosol.net.cache.OldCache.ValuesCollection
 
Field Summary
 
Fields inherited from class com.tangosol.net.cache.LocalCache
DEFAULT_EXPIRE, DEFAULT_KEY_MASK, DEFAULT_UNITS
 
Fields inherited from class com.tangosol.net.cache.OldCache
DEFAULT_FLUSH, DEFAULT_PRUNE, EVICTION_POLICY_EXTERNAL, EVICTION_POLICY_HYBRID, EVICTION_POLICY_LFU, EVICTION_POLICY_LRU, m_calculator, m_cCurUnits, m_cExpiryDelay, m_cFlushDelay, m_cMaxUnits, m_cPruneUnits, m_listenerSupport, m_lNextFlush, m_nCalculatorType, m_nEvictionType, m_policy, m_stats, UNIT_CALCULATOR_BINARY, UNIT_CALCULATOR_EXTERNAL, UNIT_CALCULATOR_FIXED
 
Fields inherited from class com.tangosol.util.SafeHashMap
BIGGEST_MODULO, DEFAULT_GROWTHRATE, DEFAULT_INITIALSIZE, DEFAULT_LOADFACTOR, m_aeBucket, m_cCapacity, m_cEntries, m_colValues, m_flGrowthRate, m_flLoadFactor, m_oIterActive, m_setEntries, m_setKeys, PRIME_MODULO, RESIZING
 
Fields inherited from interface com.tangosol.net.cache.CacheMap
EXPIRY_DEFAULT, EXPIRY_NEVER
 
Constructor Summary
HitTrackingLocalCache()
           
HitTrackingLocalCache(int i)
           
HitTrackingLocalCache(int i, int i1)
           
HitTrackingLocalCache(int i, int i1, com.tangosol.net.cache.CacheLoader cacheLoader)
           
 
Method Summary
 com.tangosol.util.SafeHashMap.Entry getEntry(Object object)
           
 int getEntryCount()
           
 long getExpiryCount()
           
 Collection getHitCounts()
           
 long getHitStatisticsForEntry(com.tangosol.util.SafeHashMap.Entry entry)
           
 long getPrunings()
           
protected  void prune()
           
protected  void removeExpired(com.tangosol.net.cache.OldCache.Entry entry, boolean b)
           
 
Methods inherited from class com.tangosol.net.cache.LocalCache
clear, get, getAll, getCacheLoader, getCacheStore, getKeyMask, instantiateEntry, instantiateInternalListener, instantiateMapEvent, load, loadAll, loadAll, peek, peekAll, remove, setCacheLoader, setKeyMask
 
Methods inherited from class com.tangosol.net.cache.OldCache
addMapListener, addMapListener, addMapListener, adjustUnits, checkFlush, checkSize, configureEviction, configureUnitCalculator, containsKey, deferFlush, dispatchEvent, evict, evict, evictAll, getCacheHits, getCacheMisses, getCacheStatistics, getEntryInternal, getEvictionPolicy, getEvictionType, getExpiryDelay, getFlushDelay, getFlushTime, getHighUnits, getHitProbability, getLowUnits, getMapListenerSupport, getUnitCalculator, getUnitCalculatorType, getUnits, hasListeners, instantiateEntrySet, instantiateKeySet, instantiateValuesCollection, put, put, removeMapListener, removeMapListener, removeMapListener, resetHitStatistics, scheduleFlush, setEvictionPolicy, setEvictionType, setExpiryDelay, setFlushDelay, setFlushTime, setHighUnits, setLowUnits, setUnitCalculator, setUnitCalculatorType, size, toString
 
Methods inherited from class com.tangosol.util.SafeHashMap
clone, cloneEntryList, entrySet, getBucketIndex, getStableBucketArray, grow, isActiveIterator, isEmpty, iteratorActivated, iteratorDeactivated, keySet, removeEntryInternal, values
 
Methods inherited from class java.util.AbstractMap
containsValue, equals, hashCode, putAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.tangosol.net.cache.CacheMap
put, put
 
Methods inherited from interface com.tangosol.util.ObservableMap
addMapListener, addMapListener, addMapListener, removeMapListener, removeMapListener, removeMapListener
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, size, values
 

Constructor Detail

HitTrackingLocalCache

public HitTrackingLocalCache()

HitTrackingLocalCache

public HitTrackingLocalCache(int i)

HitTrackingLocalCache

public HitTrackingLocalCache(int i,
                             int i1)

HitTrackingLocalCache

public HitTrackingLocalCache(int i,
                             int i1,
                             com.tangosol.net.cache.CacheLoader cacheLoader)
Method Detail

prune

protected void prune()
Overrides:
prune in class com.tangosol.net.cache.OldCache

getEntry

public com.tangosol.util.SafeHashMap.Entry getEntry(Object object)
Overrides:
getEntry in class com.tangosol.net.cache.LocalCache

removeExpired

protected void removeExpired(com.tangosol.net.cache.OldCache.Entry entry,
                             boolean b)
Overrides:
removeExpired in class com.tangosol.net.cache.LocalCache

getPrunings

public long getPrunings()

getExpiryCount

public long getExpiryCount()

getEntryCount

public int getEntryCount()

getHitCounts

public Collection getHitCounts()

getHitStatisticsForEntry

public long getHitStatisticsForEntry(com.tangosol.util.SafeHashMap.Entry entry)


Confluence is developed by Atlassian.