Package org.apache.druid.client.cache
Class BackgroundCachePopulator
java.lang.Object
org.apache.druid.client.cache.BackgroundCachePopulator
- All Implemented Interfaces:
CachePopulator
CachePopulator implementation that uses a ExecutorService thread pool to populate a cache in the
background. Used if config "druid.*.cache.numBackgroundThreads" is greater than 0.-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundCachePopulator(ExecutorService exec, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulatorStats cachePopulatorStats, long maxEntrySize) -
Method Summary
-
Constructor Details
-
BackgroundCachePopulator
public BackgroundCachePopulator(ExecutorService exec, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulatorStats cachePopulatorStats, long maxEntrySize)
-
-
Method Details
-
wrap
public <T,CacheType> Sequence<T> wrap(Sequence<T> sequence, Function<T, CacheType> cacheFn, Cache cache, Cache.NamedKey cacheKey) - Specified by:
wrapin interfaceCachePopulator
-