public void clear() { _delegate.clear(); _stats.clear(); }
public long getExecutionCount() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.getExecutionCount(); return NO_STATS; }
/** * Returns number of total evictions since last reset */ public long getEvictionCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getEvictionCount(); return NO_STATS; }
_stats.recordExecution(mapping); return result;
public PreparedQuery markUncachable(String id, Exclusion exclusion) { lock(false); try { if (_uncachables.put(id, exclusion) == null) { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-uncache", id, exclusion)); } PreparedQuery pq = _delegate.remove(id); if (_statsEnabled && pq != null) { _stats.recordEviction(id); } return pq; } finally { unlock(false); } }
public Set<String> queries() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.keys(); return null; }
public long getTotalExecutionCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getTotalExecutionCount(); return NO_STATS; }
public long getTotalHitCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getTotalHitCount(); return NO_STATS; }
public long getHitCount() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.getHitCount(); return NO_STATS; }
/** * Returns number of total eviction requests since start. */ public long getTotalEvictionCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getTotalEvictionCount(); return NO_STATS; }
_stats.recordExecution(mapping); return result;
public PreparedQuery markUncachable(String id, Exclusion exclusion) { lock(false); try { if (_uncachables.put(id, exclusion) == null) { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-uncache", id, exclusion)); } PreparedQuery pq = _delegate.remove(id); if (_statsEnabled && pq != null) { _stats.recordEviction(id); } return pq; } finally { unlock(false); } }
public Set<String> queries() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.keys(); return null; }
public long getTotalExecutionCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getTotalExecutionCount(); return NO_STATS; }
public long getTotalHitCount() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.getTotalHitCount(); return NO_STATS; }
public long getHitCount(String query) { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.getHitCount(query); return NO_STATS; }
/** * Returns number of total eviction requests since start. */ public long getTotalEvictionCount() { QueryStatistics<QueryKey> stats = getStatistics(); if (stats != null) return stats.getTotalEvictionCount(); return NO_STATS; }
_stats.recordExecution(mapping); return result;
public PreparedQuery markUncachable(String id, Exclusion exclusion) { lock(false); try { if (_uncachables.put(id, exclusion) == null) { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-uncache", id, exclusion)); } PreparedQuery pq = _delegate.remove(id); if (_statsEnabled && pq != null) { _stats.recordEviction(id); } return pq; } finally { unlock(false); } }
public long getExecutionCount() { QueryStatistics<String> stats = getStatistics(); if (stats != null) return stats.getExecutionCount(); return NO_STATS; }