private void cacheManagerPeerListenerFactory(final Config conf) { if (conf.hasPath("class")) { eh.addCacheManagerPeerListenerFactory( newFactory("ehcache.cacheManagerPeerListenerFactory", conf, FactoryConfiguration::new) ); } else { each(conf, (name, c) -> { eh.addCacheManagerPeerListenerFactory( newFactory("ehcache.cacheManagerPeerListenerFactory." + name, c, FactoryConfiguration::new) ); }); } }
/** * Builder method to add a peer listener through a factory. * * @return this configuration instance */ public final Configuration cacheManagerPeerListenerFactory(FactoryConfiguration factory) { addCacheManagerPeerListenerFactory(factory); return this; }
/** * Builder method to add a peer listener through a factory. * * @return this configuration instance */ public final Configuration cacheManagerPeerListenerFactory(FactoryConfiguration factory) { addCacheManagerPeerListenerFactory(factory); return this; }
/** * Builder method to add a peer listener through a factory. * * @return this configuration instance */ public final Configuration cacheManagerPeerListenerFactory(FactoryConfiguration factory) { addCacheManagerPeerListenerFactory(factory); return this; }
/** * Builder method to add a peer listener through a factory. * * @return this configuration instance */ public final Configuration cacheManagerPeerListenerFactory(FactoryConfiguration factory) { addCacheManagerPeerListenerFactory(factory); return this; }
private void cacheManagerPeerListenerFactory(final Config conf) { if (conf.hasPath("class")) { eh.addCacheManagerPeerListenerFactory( newFactory("ehcache.cacheManagerPeerListenerFactory", conf, FactoryConfiguration::new) ); } else { each(conf, (name, c) -> { eh.addCacheManagerPeerListenerFactory( newFactory("ehcache.cacheManagerPeerListenerFactory." + name, c, FactoryConfiguration::new) ); }); } }