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 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 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 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 boolean invalidate(String id) { lock(false); try { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-invalidate", id)); boolean rc = _delegate.remove(id) != null; if (_statsEnabled && rc) { _stats.recordEviction(id); } return rc; } finally { unlock(false); } }
public boolean invalidate(String id) { lock(false); try { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-invalidate", id)); boolean rc = _delegate.remove(id) != null; if (_statsEnabled && rc) { _stats.recordEviction(id); } return rc; } finally { unlock(false); } }
public boolean invalidate(String id) { lock(false); try { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-invalidate", id)); boolean rc = _delegate.remove(id) != null; if (_statsEnabled && rc) { _stats.recordEviction(id); } return rc; } finally { unlock(false); } }
public boolean invalidate(String id) { lock(false); try { if (_log != null && _log.isTraceEnabled()) _log.trace(_loc.get("prepared-query-invalidate", id)); boolean rc = _delegate.remove(id) != null; if (_statsEnabled && rc) { _stats.recordEviction(id); } return rc; } finally { unlock(false); } }
public QueryResult remove(QueryKey key) { QueryResult o = removeInternal(key); if (_statsEnabled) { _stats.recordEviction(key); } if (o != null && o.isTimedOut()) o = null; if (log.isTraceEnabled()) { if (o == null) log.trace(s_loc.get("cache-remove-miss", key)); else log.trace(s_loc.get("cache-remove-hit", key)); } return o; }
public QueryResult remove(QueryKey key) { QueryResult o = removeInternal(key); if (_statsEnabled) { _stats.recordEviction(key); } if (o != null && o.isTimedOut()) o = null; if (log.isTraceEnabled()) { if (o == null) log.trace(s_loc.get("cache-remove-miss", key)); else log.trace(s_loc.get("cache-remove-hit", key)); } return o; }
public QueryResult remove(QueryKey key) { QueryResult o = removeInternal(key); if (_statsEnabled) { _stats.recordEviction(key); } if (o != null && o.isTimedOut()) o = null; if (log.isTraceEnabled()) { if (o == null) log.trace(s_loc.get("cache-remove-miss", key)); else log.trace(s_loc.get("cache-remove-hit", key)); } return o; }
public QueryResult remove(QueryKey key) { QueryResult o = removeInternal(key); if (_statsEnabled) { _stats.recordEviction(key); } if (o != null && o.isTimedOut()) o = null; if (log.isTraceEnabled()) { if (o == null) log.trace(s_loc.get("cache-remove-miss", key)); else log.trace(s_loc.get("cache-remove-hit", key)); } return o; }