public static CacheConfigReader newInstance(final Config config) { return new CacheConfigReader(config); }
private CacheConfigReader getCacheConfigReader(final String childPath) { return CacheConfigReader.newInstance(getChild(childPath)); }
private static Caffeine<Object, Object> caffeine(final CacheConfigReader cacheConfigReader, final Executor executor) { final Caffeine<Object, Object> caffeine = Caffeine.newBuilder(); caffeine.maximumSize(cacheConfigReader.maximumSize()); caffeine.expireAfterWrite(cacheConfigReader.expireAfterWrite()); caffeine.executor(executor); return caffeine; }
final Duration activityCheckInterval = configReader.caches().id().expireAfterWrite(); final ActorRef conciergeForwarder = getInternalConciergeForwarder(context, configReader, pubSubMediator); final Executor enforcerExecutor = actorSystem.dispatchers().lookup(ENFORCER_DISPATCHER);
private CacheConfigReader getCacheConfigReader(final String childPath) { return new CacheConfigReader(getChild(childPath)); }