Package com.tangosol.net.cache
Class CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate
- java.lang.Object
-
- com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate
-
- All Implemented Interfaces:
Comparable
- Enclosing class:
- CompactSerializationCache.InternalEvictionPolicy
protected class CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate extends Object implements Comparable
EvictionCandidate represents a candidate for eviction during the calculation of the eviction set, representing the key, its relative "weight" as assigned by the configuredConfigurableCacheMap.EvictionPolicy
as well as its size in units.
-
-
Constructor Summary
Constructors Constructor Description EvictionCandidate(Binary binKey, long lWeight, long cUnits)
Construct a EvictionCandidate for the specified key and weight.
-
-
-
Field Detail
-
m_binKey
protected Binary m_binKey
The Binary key represented by this EvictionCandidate.
-
m_lWeight
protected long m_lWeight
The calculated eviction weight (priority) of the key.
-
m_cUnits
protected long m_cUnits
The size in units of the associated entry.
-
-
Constructor Detail
-
EvictionCandidate
public EvictionCandidate(Binary binKey, long lWeight, long cUnits)
Construct a EvictionCandidate for the specified key and weight.- Parameters:
binKey
- the keylWeight
- the weightcUnits
- the unit
-
-
Method Detail
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
-
-