/** * 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)); } }
/** * Create a new write behind queue manager. Which in turn will create as many queues as * required by the {@link net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency} * * @param config the configuration for the queue */ public WriteBehindQueueManager(CacheConfiguration config) { this(config, new WriteBehindQueueFactory()); }
/** * Create a new write behind queue manager. Which in turn will create as many queues as * required by the {@link net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency} * * @param config the configuration for the queue */ public WriteBehindQueueManager(CacheConfiguration config) { this(config, new WriteBehindQueueFactory()); }
/** * Create a new write behind queue manager. Which in turn will create as many queues as * required by the {@link net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency} * * @param config the configuration for the queue */ public WriteBehindQueueManager(CacheConfiguration config) { this(config, new WriteBehindQueueFactory()); }
/** * Create a new write behind queue manager. Which in turn will create as many queues as * required by the {@link net.sf.ehcache.config.CacheWriterConfiguration#getWriteBehindConcurrency} * * @param config the configuration for the queue */ public WriteBehindQueueManager(CacheConfiguration config) { this(config, new WriteBehindQueueFactory()); }