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.EvictionCandidate

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

All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
CompactSerializationCache.InternalEvictionPolicy

protected class CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate
extends java.lang.Object
implements java.lang.Comparable

EvictionCandidate represents a candidate for eviction during the calculation of the eviction set, representing the key, its relative "weight" as assigned by the configured ConfigurableCacheMap.EvictionPolicy as well as its size in units.


Field Summary
protected  Binary m_binKey
          The Binary key represented by this EvictionCandidate.
protected  long m_cUnits
          The size in units of the associated entry.
protected  long m_lWeight
          The calculated eviction weight (priority) of the key.

 

Constructor Summary
CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate(Binary binKey, long lWeight, long cUnits)
          Construct a EvictionCandidate for the specified key and weight.

 

Method Summary
 int compareTo(java.lang.Object o)
          

 

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

CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate

public CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate(Binary binKey,
                                                                          long lWeight,
                                                                          long cUnits)
Construct a EvictionCandidate for the specified key and weight.
Parameters:
binKey - the key
lWeight - the weight

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

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.