public class ForegroundCachePopulator extends Object implements CachePopulator
CachePopulator implementation that populates a cache on the same thread that is processing the
Sequence. Used if config "druid.*.cache.numBackgroundThreads" is 0 (the default).| Constructor and Description |
|---|
ForegroundCachePopulator(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 ForegroundCachePopulator(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–2021 The Apache Software Foundation. All rights reserved.