Package org.apache.druid.client.cache
Class ForegroundCachePopulator
java.lang.Object
org.apache.druid.client.cache.ForegroundCachePopulator
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionForegroundCachePopulator(com.fasterxml.jackson.databind.ObjectMapper objectMapper, CachePopulatorStats cachePopulatorStats, long maxEntrySize) -
Method Summary
-
Constructor Details
-
ForegroundCachePopulator
public ForegroundCachePopulator(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
-