Searched refs:expireAfterWriteNanos (Results 1 – 9 of 9) sorted by relevance
/external/guava/android/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 282 long expireAfterWriteNanos = UNSET_INT; field in CacheBuilder 579 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 701 expireAfterWriteNanos == UNSET_INT, in expireAfterWrite() 703 expireAfterWriteNanos); in expireAfterWrite() 705 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 711 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 958 if (expireAfterWriteNanos != UNSET_INT) { in toString() 959 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | LocalCache.java | 207 final long expireAfterWriteNanos; field in LocalCache 253 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in LocalCache() 330 return expireAfterWriteNanos > 0; in expiresAfterWrite() 1771 if (expiresAfterWrite() && (now - entry.getWriteTime() >= expireAfterWriteNanos)) { in isExpired() 4515 final long expireAfterWriteNanos; 4532 cache.expireAfterWriteNanos, 4547 long expireAfterWriteNanos, 4559 this.expireAfterWriteNanos = expireAfterWriteNanos; 4579 if (expireAfterWriteNanos > 0) { 4580 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 281 long expireAfterWriteNanos = UNSET_INT; field in CacheBuilder 578 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 730 expireAfterWriteNanos == UNSET_INT, in expireAfterWrite() 732 expireAfterWriteNanos); in expireAfterWrite() 734 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 740 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 1059 if (expireAfterWriteNanos != UNSET_INT) { in toString() 1060 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | LocalCache.java | 209 final long expireAfterWriteNanos; field in LocalCache 255 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in LocalCache() 332 return expireAfterWriteNanos > 0; in expiresAfterWrite() 1771 if (expiresAfterWrite() && (now - entry.getWriteTime() >= expireAfterWriteNanos)) { in isExpired() 4686 final long expireAfterWriteNanos; 4703 cache.expireAfterWriteNanos, 4718 long expireAfterWriteNanos, 4730 this.expireAfterWriteNanos = expireAfterWriteNanos; 4750 if (expireAfterWriteNanos > 0) { 4751 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 531 assertEquals("expireAfterWriteNanos", a.expireAfterWriteNanos, b.expireAfterWriteNanos); in assertCacheBuilderEquivalence()
|
D | LocalCacheTest.java | 266 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 496 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite() 2616 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyLoading() 2633 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyLoading() 2673 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyManual() 2688 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyManual()
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 531 assertEquals("expireAfterWriteNanos", a.expireAfterWriteNanos, b.expireAfterWriteNanos); in assertCacheBuilderEquivalence()
|
D | LocalCacheTest.java | 269 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 499 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite() 2567 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyLoading() 2584 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyLoading() 2624 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyManual() 2639 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyManual()
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | LocalCache.java | 67 this.expireAfterWrite = builder.expireAfterWriteNanos; in LocalCache()
|