Searched refs:expireAfterWriteNanos (Results 1 – 7 of 7) sorted by relevance
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 212 long expireAfterWriteNanos = UNSET_INT; field in CacheBuilder 426 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 559 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in expireAfterWrite() 560 expireAfterWriteNanos); in expireAfterWrite() 562 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 567 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 798 if (expireAfterWriteNanos != UNSET_INT) { in toString() 799 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | LocalCache.java | 197 final long expireAfterWriteNanos; field in LocalCache 245 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in LocalCache() 320 return expireAfterWriteNanos > 0; in expiresAfterWrite() 1961 && (now - entry.getWriteTime() > expireAfterWriteNanos)) { in isExpired() 4591 final long expireAfterWriteNanos; 4608 cache.expireAfterWriteNanos, 4621 long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight, 4629 this.expireAfterWriteNanos = expireAfterWriteNanos; 4649 if (expireAfterWriteNanos > 0) { 4650 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 130 long expireAfterWriteNanos = UNSET_INT; field in MapMaker 466 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 476 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in checkExpiration() 477 expireAfterWriteNanos); in checkExpiration() 484 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 689 if (expireAfterWriteNanos != UNSET_INT) { in toString() 690 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | ComputingConcurrentHashMap.java | 414 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, in writeReplace() 424 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, in ComputingSerializationProxy() argument 427 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
|
D | MapMakerInternalMap.java | 175 final long expireAfterWriteNanos; field in MapMakerInternalMap 207 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in MapMakerInternalMap() 275 return expireAfterWriteNanos > 0; in expiresAfterWrite() 2323 : map.expireAfterWriteNanos; in recordWrite() 3939 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, 3955 final long expireAfterWriteNanos; 3965 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, 3972 this.expireAfterWriteNanos = expireAfterWriteNanos; 4005 if (expireAfterWriteNanos > 0) { 4006 mapMaker.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS); [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | LocalCacheTest.java | 130 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 344 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite() 2337 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyLoading() 2354 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyLoading() 2392 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyManual() 2407 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyManual()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerInternalMapTest.java | 85 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 281 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite()
|