Searched refs:sNamespaceHashCache (Results 1 – 1 of 1) sorted by relevance
100 private static final ArrayMap<String, String> sNamespaceHashCache = new ArrayMap<>(); field in JobStatus860 synchronized (sNamespaceHashCache) { in generateNamespaceHash()861 final int idx = sNamespaceHashCache.indexOfKey(namespace); in generateNamespaceHash()863 return sNamespaceHashCache.valueAt(idx); in generateNamespaceHash()890 synchronized (sNamespaceHashCache) { in generateNamespaceHash()891 if (sNamespaceHashCache.size() >= MAX_NAMESPACE_CACHE_SIZE) { in generateNamespaceHash()894 sNamespaceHashCache.removeAt((new Random()).nextInt(MAX_NAMESPACE_CACHE_SIZE)); in generateNamespaceHash()896 sNamespaceHashCache.put(namespace, hash); in generateNamespaceHash()