/** * Adds {@link StoreEventSourceConfiguration} with the specified dispatcher concurrency * to the configured builder. * * @param dispatcherConcurrency the level of concurrency in the dispatcher for ordered events * @return a new builder with the added configuration */ public CacheConfigurationBuilder<K, V> withDispatcherConcurrency(int dispatcherConcurrency) { return addOrReplaceConfiguration(new DefaultEventSourceConfiguration(dispatcherConcurrency)); }
/** * Adds {@link StoreEventSourceConfiguration} with the specified dispatcher concurrency * to the configured builder. * * @param dispatcherConcurrency the level of concurrency in the dispatcher for ordered events * @return a new builder with the added configuration */ public CacheConfigurationBuilder<K, V> withDispatcherConcurrency(int dispatcherConcurrency) { return addOrReplaceConfiguration(new DefaultEventSourceConfiguration(dispatcherConcurrency)); }