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.InternalEvictionPolicy.EvictionVisitor

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

All Implemented Interfaces:
BinaryLongMap.EntryVisitor, MultiBinaryLongMap.SafeEntryVisitor
Enclosing class:
CompactSerializationCache.InternalEvictionPolicy

protected class CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor
extends java.lang.Object
implements MultiBinaryLongMap.SafeEntryVisitor

SafeEntryVisitor implementation that calculates the set of eviction candidates.

The EvictionVisitor is to be applied to Entries of a BinaryLongMap that associates cache keys to their size in units (as determined by the configured unit-calculator).


Field Summary
protected  long f_cUnitsToEvict
          The minimum number of units to evict.
protected  java.util.SortedSet f_setEvicting
          The Map containing the keys which are candidates for eviction, mapped to their size in units.
protected  long m_cUnitsEvicting
          The number of units occupied by the entries in the eviction set.
protected  long m_lKeepThreshold
          The weight of the lightest entry that we have decided to keep.

 

Constructor Summary
CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor(long cLowUnits)
          Construct an EvictionVisitor to identify the set of keys to evict from the cache in order to prune the cache down to the specified low-units threshold

 

Method Summary
 void visit(BinaryLongMap.Entry entry)
          Visit the specified entry.

 

Field Detail

f_setEvicting

protected final java.util.SortedSet f_setEvicting
The Map containing the keys which are candidates for eviction, mapped to their size in units.

f_cUnitsToEvict

protected final long f_cUnitsToEvict
The minimum number of units to evict.

m_cUnitsEvicting

protected long m_cUnitsEvicting
The number of units occupied by the entries in the eviction set. Used during the iteration (evict-set calculation) only.

m_lKeepThreshold

protected long m_lKeepThreshold
The weight of the lightest entry that we have decided to keep. All of the entries to evict will be lighter than this threshold.

Constructor Detail

CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor

public CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor(long cLowUnits)
Construct an EvictionVisitor to identify the set of keys to evict from the cache in order to prune the cache down to the specified low-units threshold
Parameters:
cLowUnits - the low-units threshold to prune the cache to

Method Detail

visit

public void visit(BinaryLongMap.Entry entry)
Visit the specified entry.
Specified by:
visit in interface BinaryLongMap.EntryVisitor
Parameters:
entry - the entry

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.