private void clear(Exchange exchange) { this.cache.clear(); }
@Override public void clear() { map.clear(); }
@Override public void clear() { map.clear(); }
@ManagedOperation(description="Clears client cache") public void clearClients() { clientCache.clear(); }
@Override public void clearCache() { xqCache.clear(); //evictAll(); xrCache.evictAll(); repo.clearXQProcessors(); }
@Before public void setUp() { this.distributedMap.clear(); this.distributedBulkMap.clear(); this.distributedList.clear(); this.distributedBulkList.clear(); this.distributedSet.clear(); this.distributedBulkSet.clear(); this.distributedQueue.clear(); this.distributedBulkQueue.clear(); this.multiMap.clear(); this.replicatedMap.clear(); this.bulkReplicatedMap.clear(); }
@Override public Boolean call() throws Exception { logger.trace("call.enter; schema: {}", schemaName); boolean result = false; HazelcastInstance hz = findSchemaInstance(schemaName); if (hz != null) { // get docs caches and clean them cleanCache(hz, CN_XDM_CONTENT); cleanCache(hz, CN_XDM_DOCUMENT); cleanCache(hz, CN_XDM_ELEMENT); cleanCache(hz, CN_XDM_INDEX); cleanCache(hz, CN_XDM_RESULT); //cleanCache(hz, CN_XDM_QUERY); ReplicatedMap<Integer, Query> xqCache = hz.getReplicatedMap(CN_XDM_QUERY); xqCache.clear(); hMgr.clearState(); System.gc(); result = true; } logger.trace("call.exit; schema {} cleaned: {}", schemaName, result); return result; }