public Long call() { try { return cache.getStatistics() .getOffHeapHits(); } catch (NoSuchMethodError e) { return UNAVAILABLE_VALUE; } } }));
/** * Number of times a requested item was found in the off-heap store. * * @return the number of times a requested item was found in off-heap */ public long getOffHeapHits() { updateIfNeeded(); return statistics.getOffHeapHits(); }
/** * {@inheritDoc} */ public double getOffHeapHitPercentage() { updateIfNeeded(); long hits = statistics.getOffHeapHits(); long misses = statistics.getOffHeapMisses(); long total = hits + misses; return getPercentage(hits, total); }