KEYTYPE - Cache key typeVALUETYPE - Cache value type@NotThreadSafe public final class LoggingLRUCache<KEYTYPE,VALUETYPE> extends LRUCache<KEYTYPE,VALUETYPE>
LRUCache that emits a warning once the cache is full.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
LoggingLRUCache(String sCacheName,
int nMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCacheName() |
int |
hashCode() |
protected void |
onRemoveEldestEntry(Map.Entry<KEYTYPE,VALUETYPE> aEntry)
Protected method that is invoked every time the oldest entry is removed.
|
String |
toString() |
getMaxSize, removeEldestEntryclear, containsValue, getclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuespublic LoggingLRUCache(@Nonnull@Nonempty String sCacheName, @Nonnegative int nMaxSize)
protected void onRemoveEldestEntry(@Nonnull Map.Entry<KEYTYPE,VALUETYPE> aEntry)
LRUCacheonRemoveEldestEntry in class LRUCache<KEYTYPE,VALUETYPE>aEntry - The map entry that is removed. Never null.public boolean equals(Object o)
public int hashCode()
Copyright © 2006–2015 phloc systems. All rights reserved.