@Override public synchronized void clear() { super.clear(); // remove flags so that the limit check gets skipped if get has not been called yet and this // method might be called again maxKeyInDB = null; minKeyInDB = null; // a clear forces the list to be completely reloaded next time get is called furtherValues.clear(); lastValuesFromFurtherValues.clear(); }
@Override protected synchronized void increaseMaximumSize(final int maximumSize) { super.increaseMaximumSize(maximumSize); cacheMissCounter.increaseMaximumSize(maximumSize); }