/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilderTest.java | 113 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/ |
D | CacheBuilderGwtTest.java | 155 .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()
|
D | CacheBuilderFactory.java | 152 DurationSpec expireAfterWrite, DurationSpec expireAfterAccess, DurationSpec refresh, 165 if (expireAfterWrite != null) { 166 builder.expireAfterWrite(expireAfterWrite.duration, expireAfterWrite.unit);
|
D | CacheBuilderSpecTest.java | 269 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()
|
D | CacheExpirationTest.java | 54 .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()
|
D | CacheBuilderTest.java | 269 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()
|
D | CacheRefreshTest.java | 36 .expireAfterWrite(6, MILLISECONDS) in testAutoRefresh()
|
D | NullCacheTest.java | 62 .expireAfterWrite(0, SECONDS) in testGet_expireAfterWrite()
|
D | LocalCacheTest.java | 377 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 …]
|
D | CacheLoadingTest.java | 1921 testConcurrentLoading(CacheBuilder.newBuilder().expireAfterWrite(10, TimeUnit.SECONDS)); in testConcurrentExpirationLoading()
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
D | MapMakerTest.java | 67 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/ |
D | LocalCache.java | 61 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()
|
D | CacheBuilder.java | 395 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/ |
D | GenericMapMaker.java | 70 abstract GenericMapMaker<K0, V0> expireAfterWrite(long duration, TimeUnit unit); in expireAfterWrite() method in GenericMapMaker
|
D | MapMaker.java | 178 MapMaker expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in MapMaker
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | MapMakerTest.java | 225 MapMaker maker = new MapMaker().expireAfterWrite(1, HOURS); in testExpiration_setTwice() 228 maker.expireAfterWrite(1, HOURS); in testExpiration_setTwice()
|
D | MapMakerInternalMapTest.java | 254 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()
|
D | ComputingConcurrentHashMapTest.java | 223 MapMaker maker = createMapMaker().expireAfterWrite(1, TimeUnit.NANOSECONDS); in testComputeExpiredEntry()
|
D | ConcurrentHashMultisetTest.java | 453 MapMaker mapMaker = new MapMaker().expireAfterWrite(1, TimeUnit.SECONDS);
|
/external/guava/guava/src/com/google/common/collect/ |
D | GenericMapMaker.java | 115 abstract GenericMapMaker<K0, V0> expireAfterWrite(long duration, TimeUnit unit); in expireAfterWrite() method in GenericMapMaker
|
D | MapMaker.java | 379 MapMaker expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in MapMaker
|
D | MapMakerInternalMap.java | 476 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/ |
D | CacheBuilderSpec.java | 209 builder.expireAfterWrite(writeExpirationDuration, writeExpirationTimeUnit); in toCacheBuilder()
|
D | CacheBuilder.java | 605 public CacheBuilder<K, V> expireAfterWrite(long duration, TimeUnit unit) { in expireAfterWrite() method in CacheBuilder
|
D | LocalCache.java | 4626 builder.expireAfterWrite(expireAfterWriteNanos, TimeUnit.NANOSECONDS);
|