public class BackgroundCachePopulator extends Object implements 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 and Description |
|---|
BackgroundCachePopulator(ExecutorService exec,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
CachePopulatorStats cachePopulatorStats,
long maxEntrySize) |
| Modifier and Type | Method and Description |
|---|---|
<T,CacheType> |
wrap(Sequence<T> sequence,
Function<T,CacheType> cacheFn,
Cache cache,
Cache.NamedKey cacheKey) |
public BackgroundCachePopulator(ExecutorService exec, com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulatorStats cachePopulatorStats, long maxEntrySize)
public <T,CacheType> Sequence<T> wrap(Sequence<T> sequence, Function<T,CacheType> cacheFn, Cache cache, Cache.NamedKey cacheKey)
wrap in interface CachePopulatorCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.