public static class ConcurrentLRUCache.CacheEntry<K,V> extends Object implements Comparable<ConcurrentLRUCache.CacheEntry<K,V>>, Accountable
Modifier and Type | Field and Description |
---|---|
static long |
BASE_RAM_BYTES_USED |
Constructor and Description |
---|
CacheEntry(K key,
V value,
long lastAccessed) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ConcurrentLRUCache.CacheEntry<K,V> that) |
boolean |
equals(Object obj) |
Collection<Accountable> |
getChildResources() |
int |
hashCode() |
long |
ramBytesUsed() |
void |
setLastAccessed(long lastAccessed) |
String |
toString() |
public void setLastAccessed(long lastAccessed)
public int compareTo(ConcurrentLRUCache.CacheEntry<K,V> that)
compareTo
in interface Comparable<ConcurrentLRUCache.CacheEntry<K,V>>
public long ramBytesUsed()
ramBytesUsed
in interface Accountable
public Collection<Accountable> getChildResources()
getChildResources
in interface Accountable
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.