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 long
BASE_RAM_BYTES_USED
-
Constructor Summary
Constructors Constructor Description CacheEntry(K key, V value, long lastAccessed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)
boolean
equals(Object obj)
Collection<org.apache.lucene.util.Accountable>
getChildResources()
int
hashCode()
long
ramBytesUsed()
void
setLastAccessed(long lastAccessed)
String
toString()
-
-
-
Method Detail
-
setLastAccessed
public void setLastAccessed(long lastAccessed)
-
compareTo
public int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)
- Specified by:
compareTo
in interfaceComparable<K>
-
ramBytesUsed
public long ramBytesUsed()
- Specified by:
ramBytesUsed
in interfaceorg.apache.lucene.util.Accountable
-
getChildResources
public Collection<org.apache.lucene.util.Accountable> getChildResources()
- Specified by:
getChildResources
in interfaceorg.apache.lucene.util.Accountable
-
-