Package org.apache.solr.util
Class ConcurrentLRUCache.CacheEntry<K,V>
- java.lang.Object
-
- org.apache.solr.util.ConcurrentLRUCache.CacheEntry<K,V>
-
- All Implemented Interfaces:
Comparable<ConcurrentLRUCache.CacheEntry<K,V>>,org.apache.lucene.util.Accountable
- Enclosing class:
- ConcurrentLRUCache<K,V>
public static class ConcurrentLRUCache.CacheEntry<K,V> extends Object implements Comparable<ConcurrentLRUCache.CacheEntry<K,V>>, org.apache.lucene.util.Accountable
-
-
Field Summary
Fields Modifier and Type Field Description static longBASE_RAM_BYTES_USED
-
Constructor Summary
Constructors Constructor Description CacheEntry(K key, V value, long createTime, long lastAccessed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConcurrentLRUCache.CacheEntry<K,V> that)booleanequals(Object obj)Collection<org.apache.lucene.util.Accountable>getChildResources()inthashCode()longramBytesUsed()voidsetLastAccessed(long lastAccessed)StringtoString()
-
-
-
Method Detail
-
setLastAccessed
public void setLastAccessed(long lastAccessed)
-
compareTo
public int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)
- Specified by:
compareToin interfaceComparable<K>
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
getChildResources
public Collection<org.apache.lucene.util.Accountable> getChildResources()
- Specified by:
getChildResourcesin interfaceorg.apache.lucene.util.Accountable
-
-