/** * 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() { return statistics.localOffHeapHitCount(); }
/** * {@inheritDoc} */ public double getOffHeapHitPercentage() { long hits = statistics.localOffHeapHitCount(); long misses = statistics.localOffHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getOffHeapHitCount() { try { return cache.getStatistics().localOffHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * 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() { return statistics.localOffHeapHitCount(); }
/** * 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() { return statistics.localOffHeapHitCount(); }
/** * {@inheritDoc} */ public double getOffHeapHitPercentage() { long hits = statistics.localOffHeapHitCount(); long misses = statistics.localOffHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getOffHeapHitCount() { try { return cache.getStatistics().localOffHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
/** * {@inheritDoc} */ public double getOffHeapHitPercentage() { long hits = statistics.localOffHeapHitCount(); long misses = statistics.localOffHeapMissCount(); long total = hits + misses; return getPercentage(hits, total); }
/** * {@inheritDoc} */ @Override public long getOffHeapHitCount() { try { return cache.getStatistics().localOffHeapHitCount(); } catch (RuntimeException e) { throw Utils.newPlainException(e); } }
(Gauge<Long>) () -> cache.getStatistics().localOffHeapHitCount());