Home
last modified time | relevance | path

Searched refs:expireAfterAccessNanos (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java223 long expireAfterAccessNanos = UNSET_INT; field in CacheBuilder
344 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight()
430 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in expireAfterAccess()
431 expireAfterAccessNanos); in expireAfterAccess()
433 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
438 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos()
439 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos()
605 if (expireAfterAccessNanos != UNSET_INT) { in toString()
606 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
DLocalCache.java67 this.expireAfterAccess = builder.expireAfterAccessNanos; in LocalCache()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java229 long expireAfterAccessNanos = UNSET_INT; field in CacheBuilder
491 if (expireAfterWriteNanos == 0 || expireAfterAccessNanos == 0) { in getMaximumWeight()
640 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in expireAfterAccess()
641 expireAfterAccessNanos); in expireAfterAccess()
643 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
648 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos()
649 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos()
850 if (expireAfterAccessNanos != UNSET_INT) { in toString()
851 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
DLocalCache.java196 final long expireAfterAccessNanos; field in LocalCache
247 expireAfterAccessNanos = builder.getExpireAfterAccessNanos(); in LocalCache()
329 return expireAfterAccessNanos > 0; in expiresAfterAccess()
1909 && (now - entry.getAccessTime() >= expireAfterAccessNanos)) { in isExpired()
4568 final long expireAfterAccessNanos;
4585 cache.expireAfterAccessNanos,
4597 long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight,
4606 this.expireAfterAccessNanos = expireAfterAccessNanos;
4628 if (expireAfterAccessNanos > 0) {
4629 builder.expireAfterAccess(expireAfterAccessNanos, TimeUnit.NANOSECONDS);
/external/guava/guava/src/com/google/common/collect/
DMapMaker.java124 long expireAfterAccessNanos = UNSET_INT; field in MapMaker
393 checkState(expireAfterAccessNanos == UNSET_INT, "expireAfterAccess was already set to %s ns", in checkExpiration()
394 expireAfterAccessNanos); in checkExpiration()
432 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
442 return (expireAfterAccessNanos == UNSET_INT) in getExpireAfterAccessNanos()
443 ? DEFAULT_EXPIRATION_NANOS : expireAfterAccessNanos; in getExpireAfterAccessNanos()
609 if (expireAfterAccessNanos != UNSET_INT) { in toString()
610 s.add("expireAfterAccess", expireAfterAccessNanos + "ns"); in toString()
DComputingConcurrentHashMap.java383 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize, in writeReplace()
393 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize, in ComputingSerializationProxy() argument
397 expireAfterAccessNanos, maximumSize, concurrencyLevel, removalListener, delegate); in ComputingSerializationProxy()
DMapMakerInternalMap.java171 final long expireAfterAccessNanos; field in MapMakerInternalMap
205 expireAfterAccessNanos = builder.getExpireAfterAccessNanos(); in MapMakerInternalMap()
278 return expireAfterAccessNanos > 0; in expiresAfterAccess()
2253 recordExpirationTime(entry, map.expireAfterAccessNanos); in recordRead()
2269 recordExpirationTime(entry, map.expireAfterAccessNanos); in recordLockedRead()
2287 ? map.expireAfterAccessNanos in recordWrite()
3888 valueEquivalence, expireAfterWriteNanos, expireAfterAccessNanos, maximumSize,
3905 final long expireAfterAccessNanos;
3914 long expireAfterWriteNanos, long expireAfterAccessNanos, int maximumSize,
3922 this.expireAfterAccessNanos = expireAfterAccessNanos;
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java549 assertEquals("expireAfterAccessNanos", a.expireAfterAccessNanos, b.expireAfterAccessNanos); in assertCacheBuilderEquivalence()
DLocalCacheTest.java159 assertEquals(0, map.expireAfterAccessNanos); in testDefaults()
386 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess()
2423 assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos); in testSerializationProxyLoading()
2440 assertEquals(localCacheTwo.expireAfterAccessNanos, localCacheThree.expireAfterAccessNanos); in testSerializationProxyLoading()
2478 assertEquals(localCacheOne.expireAfterAccessNanos, localCacheTwo.expireAfterAccessNanos); in testSerializationProxyManual()
2493 assertEquals(localCacheTwo.expireAfterAccessNanos, localCacheThree.expireAfterAccessNanos); in testSerializationProxyManual()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerInternalMapTest.java84 assertEquals(0, map.expireAfterAccessNanos); in testDefaults()
263 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess()