/** {@inheritDoc} */ public long getInMemoryMisses() { updateIfNeeded(); return statistics.getInMemoryMisses(); }
public Long call() { try { return cache.getStatistics() .getInMemoryMisses(); } catch (NoSuchMethodError e) { return UNAVAILABLE_VALUE; } } }));
/** * {@inheritDoc} */ public double getInMemoryHitPercentage() { updateIfNeeded(); long hits = statistics.getInMemoryHits(); long misses = statistics.getInMemoryMisses(); long total = hits + misses; return getPercentage(hits, total); }