private static class CachingMetadataReaderFactory.LocalResourceCache extends java.util.LinkedHashMap<Resource,MetadataReader>
Modifier and Type | Field and Description |
---|---|
private int |
cacheLimit |
Constructor and Description |
---|
LocalResourceCache(int cacheLimit) |
Modifier and Type | Method and Description |
---|---|
int |
getCacheLimit() |
protected boolean |
removeEldestEntry(java.util.Map.Entry<Resource,MetadataReader> eldest) |
void |
setCacheLimit(int cacheLimit) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setCacheLimit(int cacheLimit)
public int getCacheLimit()
protected boolean removeEldestEntry(java.util.Map.Entry<Resource,MetadataReader> eldest)
removeEldestEntry
in class java.util.LinkedHashMap<Resource,MetadataReader>