Home | History | Annotate | Download | only in util

Lines Matching refs:cacheKey

304     private static final ConcurrentMap<CacheKey, BundleReference> cacheList
356 private volatile CacheKey cacheKey;
538 private static class CacheKey implements Cloneable {
548 // These time values are in CacheKey so that NONEXISTENT_BUNDLE
565 CacheKey(String baseName, Locale locale, ClassLoader loader) {
580 CacheKey setName(String baseName) {
592 CacheKey setLocale(Locale locale) {
609 final CacheKey otherEntry = (CacheKey)other;
653 CacheKey clone = (CacheKey) super.clone();
700 return "CacheKey[" + name + ", lc=" + l + ", ldr=" + getLoader()
706 * The common interface to get a CacheKey in LoaderReference and
710 public CacheKey getCacheKey();
720 private CacheKey cacheKey;
722 LoaderReference(ClassLoader referent, ReferenceQueue<Object> q, CacheKey key) {
724 cacheKey = key;
727 public CacheKey getCacheKey() {
728 return cacheKey;
738 private CacheKey cacheKey;
740 BundleReference(ResourceBundle referent, ReferenceQueue<Object> q, CacheKey key) {
742 cacheKey = key;
745 public CacheKey getCacheKey() {
746 return cacheKey;
1314 // We create a CacheKey here for use by this call. The base
1318 CacheKey cacheKey = new CacheKey(baseName, locale, loader);
1322 BundleReference bundleRef = cacheList.get(cacheKey);
1355 bundle = findBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle);
1381 throwMissingResourceException(baseName, locale, cacheKey.getCause());
1404 private static ResourceBundle findBundle(CacheKey cacheKey,
1413 parent = findBundle(cacheKey, candidateLocales, formats, index + 1,
1433 cacheKey.setLocale(targetLocale);
1434 ResourceBundle bundle = findBundleInCache(cacheKey, control);
1448 BundleReference bundleRef = cacheList.get(cacheKey);
1450 cacheList.remove(cacheKey, bundleRef);
1456 CacheKey constKey = (CacheKey) cacheKey.clone();
1459 bundle = loadBundle(cacheKey, formats, control, expiredBundle);
1465 bundle = putBundleInCache(cacheKey, bundle, control);
1471 putBundleInCache(cacheKey, NONEXISTENT_BUNDLE, control);
1481 private static ResourceBundle loadBundle(CacheKey cacheKey,
1488 Locale targetLocale = cacheKey.getLocale();
1495 bundle = control.newBundle(cacheKey.getName(), targetLocale, format,
1496 cacheKey.getLoader(), reload);
1501 cacheKey.setCause(error);
1503 cacheKey.setCause(cause);
1508 cacheKey.setFormat(format);
1509 bundle.name = cacheKey.getName();
1535 CacheKey key = bundle.cacheKey;
1569 * @param cacheKey the key to look up the cache
1575 private static ResourceBundle findBundleInCache(CacheKey cacheKey,
1577 BundleReference bundleRef = cacheList.get(cacheKey);
1623 bundle.cacheKey = null;
1624 cacheList.remove(cacheKey, bundleRef);
1627 CacheKey key = bundleRef.getCacheKey();
1647 cacheKey.setCause(e);
1654 bundle.cacheKey = null;
1655 cacheList.remove(cacheKey, bundleRef);
1665 cacheList.remove(cacheKey, bundleRef);
1676 * @param cacheKey the key for the resource bundle
1678 * @return the ResourceBundle for the cacheKey; if someone has put
1682 private static ResourceBundle putBundleInCache(CacheKey cacheKey,
1685 setExpirationTime(cacheKey, control);
1686 if (cacheKey.expirationTime != Control.TTL_DONT_CACHE) {
1687 CacheKey key = (CacheKey) cacheKey.clone();
1689 bundle.cacheKey = key;
1700 bundle.cacheKey = null;
1715 private static void setExpirationTime(CacheKey cacheKey, Control control) {
1716 long ttl = control.getTimeToLive(cacheKey.getName(),
1717 cacheKey.getLocale());
1722 cacheKey.loadTime = now;
1723 cacheKey.expirationTime = now + ttl;
1725 cacheKey.expirationTime = ttl;
1758 Set<CacheKey> set = cacheList.keySet();
1759 for (CacheKey key : set) {