Home
last modified time | relevance | path

Searched refs:refreshNanos (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java214 long refreshNanos = UNSET_INT; field in CacheBuilder
632 checkState(refreshNanos == UNSET_INT, "refresh was already set to %s ns", refreshNanos); in refreshAfterWrite()
634 this.refreshNanos = unit.toNanos(duration); in refreshAfterWrite()
639 return (refreshNanos == UNSET_INT) ? DEFAULT_REFRESH_NANOS : refreshNanos; in getRefreshNanos()
761 checkState(refreshNanos == UNSET_INT, "refreshAfterWrite requires a LoadingCache"); in checkNonLoadingCache()
DLocalCache.java200 final long refreshNanos; field in LocalCache
246 refreshNanos = builder.getRefreshNanos(); in LocalCache()
328 return refreshNanos > 0; in refreshes()
2398 if (map.refreshes() && (now - entry.getWriteTime() > map.refreshNanos)) { in scheduleRefresh()
/external/guava/guava-tests/test/com/google/common/cache/
DLocalCacheTest.java131 assertEquals(0, map.refreshNanos); in testDefaults()
360 assertEquals(unit.toNanos(duration), map.refreshNanos); in testSetRefresh()
2338 assertEquals(localCacheOne.refreshNanos, localCacheTwo.refreshNanos); in testSerializationProxyLoading()