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 Details

    • BASE_RAM_BYTES_USED

      public static long BASE_RAM_BYTES_USED
  • Constructor Details

    • CacheEntry

      public CacheEntry(K key, V value, long createTime, long lastAccessed)
  • Method Details

    • setLastAccessed

      public void setLastAccessed(long lastAccessed)
    • compareTo

      public int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)
      Specified by:
      compareTo in interface Comparable<K>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • ramBytesUsed

      public long ramBytesUsed()
      Specified by:
      ramBytesUsed in interface org.apache.lucene.util.Accountable
    • getChildResources

      public Collection<org.apache.lucene.util.Accountable> getChildResources()
      Specified by:
      getChildResources in interface org.apache.lucene.util.Accountable