/** * Create the write behind queue manager with queues created via the passed in {@link WriteBehindQueueFactory} * * @param config configuration for the cache this write behind queue manager is working with * @param queueFactory factory used to create the write behind queues. */ protected WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueFactory queueFactory) { CacheWriterConfiguration cacheWriterConfiguration = config.getCacheWriterConfiguration(); int writeBehindConcurrency = cacheWriterConfiguration.getWriteBehindConcurrency(); for (int i = 0; i < writeBehindConcurrency; i++) { this.queues.add(queueFactory.createQueue(i, config)); } }
/** * Create the write behind queue manager with queues created via the passed in {@link WriteBehindQueueFactory} * * @param config configuration for the cache this write behind queue manager is working with * @param queueFactory factory used to create the write behind queues. */ protected WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueFactory queueFactory) { CacheWriterConfiguration cacheWriterConfiguration = config.getCacheWriterConfiguration(); int writeBehindConcurrency = cacheWriterConfiguration.getWriteBehindConcurrency(); for (int i = 0; i < writeBehindConcurrency; i++) { this.queues.add(queueFactory.createQueue(i, config)); } }
/** * Create the write behind queue manager with queues created via the passed in {@link WriteBehindQueueFactory} * * @param config configuration for the cache this write behind queue manager is working with * @param queueFactory factory used to create the write behind queues. */ protected WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueFactory queueFactory) { CacheWriterConfiguration cacheWriterConfiguration = config.getCacheWriterConfiguration(); int writeBehindConcurrency = cacheWriterConfiguration.getWriteBehindConcurrency(); for (int i = 0; i < writeBehindConcurrency; i++) { this.queues.add(queueFactory.createQueue(i, config)); } }
/** * Create the write behind queue manager with queues created via the passed in {@link WriteBehindQueueFactory} * * @param config configuration for the cache this write behind queue manager is working with * @param queueFactory factory used to create the write behind queues. */ protected WriteBehindQueueManager(CacheConfiguration config, WriteBehindQueueFactory queueFactory) { CacheWriterConfiguration cacheWriterConfiguration = config.getCacheWriterConfiguration(); int writeBehindConcurrency = cacheWriterConfiguration.getWriteBehindConcurrency(); for (int i = 0; i < writeBehindConcurrency; i++) { this.queues.add(queueFactory.createQueue(i, config)); } }