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 SummaryFields Modifier and Type Field Description static longBASE_RAM_BYTES_USED
 - 
Constructor SummaryConstructors Constructor Description CacheEntry(K key, V value, long createTime, long lastAccessed)
 - 
Method SummaryAll 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- 
setLastAccessedpublic void setLastAccessed(long lastAccessed) 
 - 
compareTopublic int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that) - Specified by:
- compareToin interface- Comparable<K>
 
 - 
ramBytesUsedpublic long ramBytesUsed() - Specified by:
- ramBytesUsedin interface- org.apache.lucene.util.Accountable
 
 - 
getChildResourcespublic Collection<org.apache.lucene.util.Accountable> getChildResources() - Specified by:
- getChildResourcesin interface- org.apache.lucene.util.Accountable
 
 
- 
 
-