/** * Creates a strongly-typed proxy to access values in this {@link Dom} object, * by using the specified interface type as the proxy type. */ public <T extends ConfigBeanProxy> T createProxy(final Class<T> proxyType) { ConfigBeanProxy retVal = proxyCache.compute(proxyType); return proxyType.cast(retVal); }
/* package */ void clearServiceCache() { igdCache.clear(); }
/* package */ int getServiceCacheMaximumSize() { return igdCache.getMaxSize(); }
/* package */ int getServiceCacheSize() { return igdCache.getValueSize(); }
private void reupCache(HashSet<String> affectedContracts) { // This lock must be acquired as reupCache is called on children wLock.lock(); try { for (String affectedContract : affectedContracts) { final String fAffectedContract = affectedContract; final CacheKeyFilter<IgdCacheKey> cacheKeyFilter = new CacheKeyFilter<IgdCacheKey>() { @Override public boolean matches(IgdCacheKey key) { return key.cacheKey.matchesRemovalName(fAffectedContract); } }; igdCache.releaseMatching(cacheKeyFilter); igashCache.releaseMatching(cacheKeyFilter); } } finally { wLock.unlock(); } }
/* package */ int getServiceCacheSize() { return igdCache.getValueSize(); }
private void reupCache(HashSet<String> affectedContracts) { // This lock must be acquired as reupCache is called on children wLock.lock(); try { for (String affectedContract : affectedContracts) { final String fAffectedContract = affectedContract; final CacheKeyFilter<IgdCacheKey> cacheKeyFilter = new CacheKeyFilter<IgdCacheKey>() { @Override public boolean matches(IgdCacheKey key) { return key.cacheKey.matchesRemovalName(fAffectedContract); } }; igdCache.releaseMatching(cacheKeyFilter); igashCache.releaseMatching(cacheKeyFilter); } } finally { wLock.unlock(); } }
/** * Creates a strongly-typed proxy to access values in this {@link Dom} object, * by using the specified interface type as the proxy type. */ public <T extends ConfigBeanProxy> T createProxy(final Class<T> proxyType) { ConfigBeanProxy retVal = proxyCache.compute(proxyType); return proxyType.cast(retVal); }
/* package */ void clearServiceCache() { igdCache.clear(); }
/* package */ int getServiceCacheSize() { return igdCache.getValueSize(); }
/* package */ int getServiceCacheMaximumSize() { return igdCache.getMaxSize(); }
private void reupCache(HashSet<String> affectedContracts) { // This lock must be acquired as reupCache is called on children wLock.lock(); try { for (String affectedContract : affectedContracts) { final String fAffectedContract = affectedContract; final CacheKeyFilter<IgdCacheKey> cacheKeyFilter = new CacheKeyFilter<IgdCacheKey>() { @Override public boolean matches(IgdCacheKey key) { return key.cacheKey.matchesRemovalName(fAffectedContract); } }; igdCache.releaseMatching(cacheKeyFilter); igashCache.releaseMatching(cacheKeyFilter); } } finally { wLock.unlock(); } }
/** * Creates a strongly-typed proxy to access values in this {@link Dom} object, * by using the specified interface type as the proxy type. */ public <T extends ConfigBeanProxy> T createProxy(final Class<T> proxyType) { ConfigBeanProxy retVal = proxyCache.compute(proxyType); return proxyType.cast(retVal); }
/* package */ void clearServiceCache() { igdCache.clear(); }
/* package */ int getServiceCacheSize() { return igdCache.getValueSize(); }
/* package */ int getServiceCacheMaximumSize() { return igdCache.getMaxSize(); }
private void reupCache(HashSet<String> affectedContracts) { // This lock must be acquired as reupCache is called on children wLock.lock(); try { for (String affectedContract : affectedContracts) { final String fAffectedContract = affectedContract; final CacheKeyFilter<IgdCacheKey> cacheKeyFilter = new CacheKeyFilter<IgdCacheKey>() { @Override public boolean matches(IgdCacheKey key) { return key.cacheKey.matchesRemovalName(fAffectedContract); } }; igdCache.releaseMatching(cacheKeyFilter); igashCache.releaseMatching(cacheKeyFilter); } } finally { wLock.unlock(); } }
final IgdValue value = igashCache.compute(igdCacheKey); final boolean freshOne = value.freshnessKeeper.compareAndSet(1, 2); if (!freshOne) {
/* package */ void clearServiceCache() { igdCache.clear(); }
/* package */ int getServiceCacheMaximumSize() { return igdCache.getMaxSize(); }