/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilder.java | 222 long expireAfterWriteNanos = UNSET_INT; field in CacheBuilder 344 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 396 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in expireAfterWrite() 397 expireAfterWriteNanos); in expireAfterWrite() 399 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 404 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 602 if (expireAfterWriteNanos != UNSET_INT) { in toString() 603 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | LocalCache.java | 68 this.expireAfterWrite = builder.expireAfterWriteNanos; in LocalCache()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilder.java | 228 long expireAfterWriteNanos = UNSET_INT; field in CacheBuilder 491 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight() 606 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in expireAfterWrite() 607 expireAfterWriteNanos); in expireAfterWrite() 609 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 614 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 847 if (expireAfterWriteNanos != UNSET_INT) { in toString() 848 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | LocalCache.java | 199 final long expireAfterWriteNanos; field in LocalCache 248 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in LocalCache() 325 return expireAfterWriteNanos > 0; in expiresAfterWrite() 1913 && (now - entry.getWriteTime() >= expireAfterWriteNanos)) { in isExpired() 4567 final long expireAfterWriteNanos; 4584 cache.expireAfterWriteNanos, 4597 long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight, 4605 this.expireAfterWriteNanos = expireAfterWriteNanos; 4625 if (expireAfterWriteNanos > 0) { 4626 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
|
/external/guava/guava/src/com/google/common/collect/ |
D | MapMaker.java | 123 long expireAfterWriteNanos = UNSET_INT; field in MapMaker 381 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite() 391 checkState(expireAfterWriteNanos == UNSET_INT, "expireAfterWrite was already set to %s ns", in checkExpiration() 392 expireAfterWriteNanos); in checkExpiration() 399 return (expireAfterWriteNanos == UNSET_INT) ? DEFAULT_EXPIRATION_NANOS : expireAfterWriteNanos; in getExpireAfterWriteNanos() 606 if (expireAfterWriteNanos != UNSET_INT) { in toString() 607 s.add("expireAfterWrite", expireAfterWriteNanos + "ns"); in toString()
|
D | ComputingConcurrentHashMap.java | 383 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, in writeReplace() 393 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, in ComputingSerializationProxy() argument 396 super(keyStrength, valueStrength, keyEquivalence, valueEquivalence, expireAfterWriteNanos, in ComputingSerializationProxy()
|
D | MapMakerInternalMap.java | 174 final long expireAfterWriteNanos; field in MapMakerInternalMap 206 expireAfterWriteNanos = builder.getExpireAfterWriteNanos(); in MapMakerInternalMap() 274 return expireAfterWriteNanos > 0; in expiresAfterWrite() 2288 : map.expireAfterWriteNanos; in recordWrite() 3888 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, 3904 final long expireAfterWriteNanos; 3914 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, 3921 this.expireAfterWriteNanos = expireAfterWriteNanos; 3953 if (expireAfterWriteNanos > 0) { 3954 mapMaker.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS); [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 550 assertEquals("expireAfterWriteNanos", a.expireAfterWriteNanos, b.expireAfterWriteNanos); in assertCacheBuilderEquivalence()
|
D | LocalCacheTest.java | 160 assertEquals(0, map.expireAfterWriteNanos); in testDefaults() 378 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite() 2424 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyLoading() 2441 assertEquals(localCacheTwo.expireAfterWriteNanos, localCacheThree.expireAfterWriteNanos); in testSerializationProxyLoading() 2479 assertEquals(localCacheOne.expireAfterWriteNanos, localCacheTwo.expireAfterWriteNanos); in testSerializationProxyManual() 2494 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() 255 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite()
|