private void clearCache(Cache<CacheID, T> cache, VDBKey vdbKey) { Set<CacheID> keys = cache.keySet(); for (CacheID key:keys) { if (key.vdbInfo.equals(vdbKey)) { cache.remove(key); } } }
private void clearCache(Cache<CacheID, T> cache, VDBKey vdbKey) { Set<CacheID> keys = cache.keySet(); for (CacheID key:keys) { if (key.vdbInfo.equals(vdbKey)) { cache.remove(key); } } }
private void clearCache(Cache<CacheID, T> cache, VDBKey vdbKey) { Set<CacheID> keys = cache.keySet(); for (CacheID key:keys) { if (key.vdbInfo.equals(vdbKey)) { cache.remove(key); } } }
public T remove(CacheID id, Determinism determinismLevel){ if (determinismLevel.compareTo(Determinism.SESSION_DETERMINISTIC) <= 0) { id.setSessionId(id.originalSessionId); LogManager.logTrace(LogConstants.CTX_DQP, "Removing from session/local cache", id); //$NON-NLS-1$ return this.localCache.remove(id); } id.setSessionId(null); if (determinismLevel == Determinism.USER_DETERMINISTIC) { id.setUserName(id.originalUserName); } else { id.setUserName(null); } LogManager.logTrace(LogConstants.CTX_DQP, "Removing from global/distributed cache", id); //$NON-NLS-1$ return this.distributedCache.remove(id); }
public T remove(CacheID id, Determinism determinismLevel){ if (determinismLevel.compareTo(Determinism.SESSION_DETERMINISTIC) <= 0) { id.setSessionId(id.originalSessionId); LogManager.logTrace(LogConstants.CTX_DQP, "Removing from session/local cache", id); //$NON-NLS-1$ return this.localCache.remove(id); } id.setSessionId(null); if (determinismLevel == Determinism.USER_DETERMINISTIC) { id.setUserName(id.originalUserName); } else { id.setUserName(null); } LogManager.logTrace(LogConstants.CTX_DQP, "Removing from global/distributed cache", id); //$NON-NLS-1$ return this.distributedCache.remove(id); }
public T remove(CacheID id, Determinism determinismLevel){ if (determinismLevel.compareTo(Determinism.SESSION_DETERMINISTIC) <= 0) { id.setSessionId(id.originalSessionId); LogManager.logTrace(LogConstants.CTX_DQP, "Removing from session/local cache", id); //$NON-NLS-1$ return this.localCache.remove(id); } id.setSessionId(null); if (determinismLevel == Determinism.USER_DETERMINISTIC) { id.setUserName(id.originalUserName); } else { id.setUserName(null); } LogManager.logTrace(LogConstants.CTX_DQP, "Removing from global/distributed cache", id); //$NON-NLS-1$ return this.distributedCache.remove(id); }