예제 #1
0
 @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();
 }
예제 #2
0
 @Override
 protected synchronized void increaseMaximumSize(final int maximumSize) {
   super.increaseMaximumSize(maximumSize);
   cacheMissCounter.increaseMaximumSize(maximumSize);
 }