@Override
            protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
                return this.size() > maxSize; // require this. prefix to make lgtm.com happy
            }
A cache implementing a least recently used policy.
clients/src/main/java/org/apache/kafka/common/cache/LRUCache.java