Lines Matching defs:cacheKey
327 private volatile CacheKey cacheKey;
670 private CacheKey cacheKey;
674 cacheKey = key;
678 return cacheKey;
688 private CacheKey cacheKey;
692 cacheKey = key;
696 return cacheKey;
1259 CacheKey cacheKey = new CacheKey(baseName, locale, loader);
1263 BundleReference bundleRef = cacheList.get(cacheKey);
1296 bundle = findBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle);
1322 throwMissingResourceException(baseName, locale, cacheKey.getCause());
1345 private static final ResourceBundle findBundle(CacheKey cacheKey,
1354 parent = findBundle(cacheKey, candidateLocales, formats, index + 1,
1374 cacheKey.setLocale(targetLocale);
1375 ResourceBundle bundle = findBundleInCache(cacheKey, control);
1389 BundleReference bundleRef = cacheList.get(cacheKey);
1391 cacheList.remove(cacheKey, bundleRef);
1397 CacheKey constKey = (CacheKey) cacheKey.clone();
1400 bundle = loadBundle(cacheKey, formats, control, expiredBundle);
1406 bundle = putBundleInCache(cacheKey, bundle, control);
1412 putBundleInCache(cacheKey, NONEXISTENT_BUNDLE, control);
1422 private static final ResourceBundle loadBundle(CacheKey cacheKey,
1429 Locale targetLocale = cacheKey.getLocale();
1436 bundle = control.newBundle(cacheKey.getName(), targetLocale, format,
1437 cacheKey.getLoader(), reload);
1442 cacheKey.setCause(error);
1444 cacheKey.setCause(cause);
1449 cacheKey.setFormat(format);
1450 bundle.name = cacheKey.getName();
1476 CacheKey key = bundle.cacheKey;
1510 * @param cacheKey the key to look up the cache
1516 private static final ResourceBundle findBundleInCache(CacheKey cacheKey,
1518 BundleReference bundleRef = cacheList.get(cacheKey);
1564 bundle.cacheKey = null;
1565 cacheList.remove(cacheKey, bundleRef);
1588 cacheKey.setCause(e);
1595 bundle.cacheKey = null;
1596 cacheList.remove(cacheKey, bundleRef);
1606 cacheList.remove(cacheKey, bundleRef);
1617 * @param cacheKey the key for the resource bundle
1619 * @return the ResourceBundle for the cacheKey; if someone has put
1623 private static final ResourceBundle putBundleInCache(CacheKey cacheKey,
1626 setExpirationTime(cacheKey, control);
1627 if (cacheKey.expirationTime != Control.TTL_DONT_CACHE) {
1628 CacheKey key = (CacheKey) cacheKey.clone();
1630 bundle.cacheKey = key;
1641 bundle.cacheKey = null;
1656 private static final void setExpirationTime(CacheKey cacheKey, Control control) {
1657 long ttl = control.getTimeToLive(cacheKey.getName(),
1658 cacheKey.getLocale());
1663 cacheKey.loadTime = now;
1664 cacheKey.expirationTime = now + ttl;
1666 cacheKey.expirationTime = ttl;