Package io.micronaut.eclipsestore.cache
Class CacheFactory
java.lang.Object
io.micronaut.eclipsestore.cache.CacheFactory
- Since:
 - 1.3.0
 - Author:
 - Tim Yates
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCacheFactory(io.micronaut.core.convert.ConversionService conversionService) Constructor. - 
Method Summary
Modifier and TypeMethodDescription<K,V> EclipseStoreSyncCache<K, V> createCache(String name, org.eclipse.store.cache.types.CacheConfiguration.Builder<K, V> cacheConfigurationBuilder, ExecutorService executorService) Create a cache for each CacheConfiguration. 
- 
Constructor Details
- 
CacheFactory
public CacheFactory(io.micronaut.core.convert.ConversionService conversionService) Constructor.- Parameters:
 conversionService- The conversion service
 
 - 
 - 
Method Details
- 
createCache
@Singleton @Bean(preDestroy="close") @EachBean(org.eclipse.store.cache.types.CacheConfiguration.Builder.class) public <K,V> EclipseStoreSyncCache<K,V> createCache(@Parameter String name, org.eclipse.store.cache.types.CacheConfiguration.Builder<K, V> cacheConfigurationBuilder, @Named("blocking") ExecutorService executorService) Create a cache for each CacheConfiguration.- Type Parameters:
 K- The key typeV- The key type- Parameters:
 name- The name of the cachecacheConfigurationBuilder- Cache Configuration BuilderexecutorService- The IO executor service for async caches- Returns:
 - The cache
 
 
 -