public CacheManagerBuilder<T> withDefaultEventListenersThreadPool(String threadPoolAlias) {
    CacheEventDispatcherFactoryConfiguration config = configBuilder.findServiceByClass(CacheEventDispatcherFactoryConfiguration.class);
    if (config == null) {
      return new CacheManagerBuilder<>(this, configBuilder.addService(new CacheEventDispatcherFactoryConfiguration(threadPoolAlias)));
    } else {
      ConfigurationBuilder builder = configBuilder.removeService(config);
      return new CacheManagerBuilder<>(this, builder.addService(new CacheEventDispatcherFactoryConfiguration(threadPoolAlias)));
    }
  }
public CacheManagerBuilder < T > withDefaultEventListenersThreadPool ( String threadPoolAlias ) { CacheEventDispatcherFactoryConfiguration config = configBuilder . findServiceByClass ( CacheEventDispatcherFactoryConfiguration . class ) ; if ( config == null ) { return new CacheManagerBuilder < > ( this , configBuilder . addService ( new CacheEventDispatcherFactoryConfiguration ( threadPoolAlias ) ) ) ; } else { ConfigurationBuilder builder = configBuilder . removeService ( config ) ; return new CacheManagerBuilder < > ( this , builder . addService ( new CacheEventDispatcherFactoryConfiguration ( threadPoolAlias ) ) ) ; } }
Adds a {@link CacheEventDispatcherFactoryConfiguration}, that specifies the thread pool to use, to the returned
builder.

@param threadPoolAlias the thread pool alias
@return a new builder with the added configuration

@see PooledExecutionServiceConfigurationBuilder