Home
last modified time | relevance | path

Searched refs:expireAfterWrite (Results 1 – 25 of 25) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilderTest.java113 builder.expireAfterWrite(-1, SECONDS); in testTimeToLive_negative()
120 .expireAfterWrite(1, NANOSECONDS) in testTimeToLive_small()
127 new CacheBuilder<Object, Object>().expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice()
130 builder.expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice()
162 .expireAfterWrite(1, NANOSECONDS) in testTimeToIdleAndToLive()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderGwtTest.java155 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testExpireAfterWrite()
182 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testExpireAfterWriteAndAccess()
280 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testRemovalListener()
378 .expireAfterWrite(20000, TimeUnit.MILLISECONDS) in testAsMap_containsValue()
396 .expireAfterWrite(20000, TimeUnit.MILLISECONDS) in testAsMap_containsKey()
414 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testAsMapValues_contains()
432 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testAsMapKeySet()
454 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testAsMapKeySet_contains()
472 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testAsMapEntrySet()
492 .expireAfterWrite(1000, TimeUnit.MILLISECONDS) in testAsMapValues_iteratorRemove()
DCacheBuilderFactory.java152 DurationSpec expireAfterWrite, DurationSpec expireAfterAccess, DurationSpec refresh,
165 if (expireAfterWrite != null) {
166 builder.expireAfterWrite(expireAfterWrite.duration, expireAfterWrite.unit);
DCacheBuilderSpecTest.java269 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.DAYS), CacheBuilder.from(spec)); in testParse_writeExpirationDays()
277 CacheBuilder.newBuilder().expireAfterWrite(150L, TimeUnit.HOURS), CacheBuilder.from(spec)); in testParse_writeExpirationHours()
285 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.MINUTES), CacheBuilder.from(spec)); in testParse_writeExpirationMinutes()
293 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); in testParse_writeExpirationSeconds()
390 .expireAfterWrite(9L, TimeUnit.MINUTES), in testParse_accessExpirationAndWriteExpiration()
414 .expireAfterWrite(1L, TimeUnit.HOURS); in testParse_multipleKeys()
435 .expireAfterWrite(15L, TimeUnit.SECONDS); in testParse_whitespaceAllowed()
DCacheExpirationTest.java54 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testExpiration_expireAfterWrite()
103 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testExpiringGet_expireAfterWrite()
197 .expireAfterWrite(10, MILLISECONDS) in testRemovalListener_expireAfterWrite()
217 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testRemovalScheduler_expireAfterWrite()
242 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testRemovalScheduler_expireAfterBoth()
307 .expireAfterWrite(11, MILLISECONDS) in testExpirationOrder_write()
354 .expireAfterWrite(5, MILLISECONDS) in testExpirationOrder_writeAccess()
DCacheBuilderTest.java269 builder.expireAfterWrite(-1, SECONDS); in testTimeToLive_negative()
276 .expireAfterWrite(1, NANOSECONDS) in testTimeToLive_small()
283 new CacheBuilder<Object, Object>().expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice()
286 builder.expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice()
318 .expireAfterWrite(1, NANOSECONDS) in testTimeToIdleAndToLive()
560 .expireAfterWrite(100, TimeUnit.MILLISECONDS) in testRemovalNotification_get_basher()
DCacheRefreshTest.java36 .expireAfterWrite(6, MILLISECONDS) in testAutoRefresh()
DNullCacheTest.java62 .expireAfterWrite(0, SECONDS) in testGet_expireAfterWrite()
DLocalCacheTest.java377 makeLocalCache(createCacheBuilder().expireAfterWrite(duration, unit)); in testSetExpireAfterWrite()
565 .expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
866 .expireAfterWrite(3, TimeUnit.NANOSECONDS) in testRemovalListener_expired()
1513 .expireAfterWrite(99999, SECONDS) in testReclaimKey()
1667 .expireAfterWrite(99999, SECONDS)); in testClear()
1701 .expireAfterWrite(99999, SECONDS) in testClear_notification()
1736 .expireAfterWrite(99999, SECONDS) in testRemoveEntry()
1770 .expireAfterWrite(99999, SECONDS) in testReclaimValue()
1817 .expireAfterWrite(99999, SECONDS) in testRemoveComputingValue()
2129 .expireAfterWrite(2, TimeUnit.NANOSECONDS)); in testExpireAfterWrite()
[all …]
DCacheLoadingTest.java1921 testConcurrentLoading(CacheBuilder.newBuilder().expireAfterWrite(10, TimeUnit.SECONDS)); in testConcurrentExpirationLoading()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMapMakerTest.java67 MapMaker maker = new MapMaker().expireAfterWrite(1, HOURS); in testExpiration_setTwice()
70 maker.expireAfterWrite(1, HOURS); in testExpiration_setTwice()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java61 private final long expireAfterWrite; field in LocalCache
68 this.expireAfterWrite = builder.expireAfterWriteNanos; in LocalCache()
217 if ((expireAfterAccess == UNSET_INT) && (expireAfterWrite == UNSET_INT)) { in isExpired()
221 boolean expireWrite = (stamped.getWriteTimestamp() + expireAfterWrite <= currentTimeNanos()); in isExpired()
227 if (expireAfterWrite == UNSET_INT) { in isExpired()
DCacheBuilder.java395 public CacheBuilder<K, V> expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in CacheBuilder
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DGenericMapMaker.java70 abstract GenericMapMaker<K0, V0> expireAfterWrite(long duration, TimeUnit unit); in expireAfterWrite() method in GenericMapMaker
DMapMaker.java178 MapMaker expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in MapMaker
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerTest.java225 MapMaker maker = new MapMaker().expireAfterWrite(1, HOURS); in testExpiration_setTwice()
228 maker.expireAfterWrite(1, HOURS); in testExpiration_setTwice()
DMapMakerInternalMapTest.java254 makeMap(createMapMaker().expireAfterWrite(duration, unit)); in testSetExpireAfterWrite()
877 .expireAfterWrite(99999, SECONDS) in testReclaimKey()
1031 .expireAfterWrite(99999, SECONDS)); in testClear()
1062 .expireAfterWrite(99999, SECONDS) in testRemoveEntry()
1096 .expireAfterWrite(99999, SECONDS) in testReclaimValue()
1143 .expireAfterWrite(99999, SECONDS) in testClearValue()
1615 result.add(maker.expireAfterWrite(99999, SECONDS)); in allEntryTypeMakers()
1621 result.add(maker.maximumSize(SMALL_MAX_SIZE).expireAfterWrite(99999, SECONDS)); in allEntryTypeMakers()
1632 createMapMaker().expireAfterWrite(99999, SECONDS), in allEvictingMakers()
1638 .expireAfterWrite(SMALL_MAX_SIZE, TimeUnit.SECONDS)); in allEvictingMakers()
DComputingConcurrentHashMapTest.java223 MapMaker maker = createMapMaker().expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
DConcurrentHashMultisetTest.java453 MapMaker mapMaker = new MapMaker().expireAfterWrite(1, TimeUnit.SECONDS);
/external/guava/guava/src/com/google/common/collect/
DGenericMapMaker.java115 abstract GenericMapMaker<K0, V0> expireAfterWrite(long duration, TimeUnit unit); in expireAfterWrite() method in GenericMapMaker
DMapMaker.java379 MapMaker expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in MapMaker
DMapMakerInternalMap.java476 static EntryFactory getFactory(Strength keyStrength, boolean expireAfterWrite, in getFactory() argument
478 int flags = (expireAfterWrite ? EXPIRABLE_MASK : 0) | (evictsBySize ? EVICTABLE_MASK : 0); in getFactory()
3954 mapMaker.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
/external/guava/guava/src/com/google/common/cache/
DCacheBuilderSpec.java209 builder.expireAfterWrite(writeExpirationDuration, writeExpirationTimeUnit); in toCacheBuilder()
DCacheBuilder.java605 public CacheBuilder<K, V> expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in CacheBuilder
DLocalCache.java4626 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);