Home | History | Annotate | Download | only in cache

Lines Matching refs:LocalCache

27 import com.google.common.cache.LocalCache.LocalLoadingCache;
28 import com.google.common.cache.LocalCache.ReferenceEntry;
29 import com.google.common.cache.LocalCache.Segment;
30 import com.google.common.cache.LocalCache.ValueReference;
97 LocalCache<K, V> map = toLocalCache(cache);
108 LocalCache<K, V> map = toLocalCache(cache);
115 * Gets the {@link LocalCache} used by the given {@link Cache}, if any, or throws an
116 * IllegalArgumentException if this is a Cache type that doesn't have a LocalCache.
118 static <K, V> LocalCache<K, V> toLocalCache(Cache<K, V> cache) {
120 return ((LocalLoadingCache<K, V>) cache).localCache;
123 + " doesn't have a LocalCache.");
127 * Determines whether the given cache can be converted to a LocalCache by
136 LocalCache<?, ?> map = toLocalCache(cache);
158 static void drainReferenceQueues(LocalCache<?, ?> cchm) {
159 for (LocalCache.Segment<?, ?> segment : cchm.segments) {
164 static void drainReferenceQueue(LocalCache.Segment<?, ?> segment) {
174 LocalCache<?, ?> map = toLocalCache(cache);
194 static void checkValidState(LocalCache<?, ?> cchm) {
224 static void checkExpiration(LocalCache<?, ?> cchm) {
285 static void checkEviction(LocalCache<?, ?> map) {
333 LocalCache<?, ?> cchm = toLocalCache(cache);
347 LocalCache<?, ?> cchm = toLocalCache(cache);
365 LocalCache<?, ?> cchm = toLocalCache(cache);
387 LocalCache<Integer, Integer> cchm = toLocalCache(cache);
420 LocalCache<?, ?> cchm, long expiringTime, FakeTicker ticker) {
464 if (map instanceof LocalCache) {
465 LocalCache<?, ?> cchm = (LocalCache<?, ?>) map;
470 for (LocalCache.Segment<?, ?> segment : cchm.segments) {