// RollupRunnable keeps a static one of these. It would be nice if we could register it and share.
MetadataCache rollupTypeCache = MetadataCache.createLoadingCacheInstance(
new TimeValue(48, TimeUnit.HOURS),
Configuration.getInstance().getIntegerProperty(CoreConfig.MAX_ROLLUP_READ_THREADS));
rollupTypeCacher = new RollupTypeCacher(
new ThreadPoolBuilder().withName("Rollup type persistence").build(),
rollupTypeCache,
true
).withLogger(log);