@Singleton public class HazelcastCacheManager extends Object implements DynamicCacheManager<com.hazelcast.map.IMap<Object,Object>>
CacheManager
implementation for Hazelcast.Constructor and Description |
---|
HazelcastCacheManager(io.micronaut.core.convert.ConversionService<?> conversionService,
com.hazelcast.core.HazelcastInstance hazelcastInstance,
ExecutorService executorService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SyncCache<com.hazelcast.map.IMap<Object,Object>> |
getCache(String name)
Retrieve a cache for the given name.
|
public HazelcastCacheManager(io.micronaut.core.convert.ConversionService<?> conversionService, com.hazelcast.core.HazelcastInstance hazelcastInstance, @Named(value="io") ExecutorService executorService)
conversionService
- convert values that are returnedhazelcastInstance
- the client instance of hazelcast clientexecutorService
- managers the pool of executors@NonNull public SyncCache<com.hazelcast.map.IMap<Object,Object>> getCache(String name)
DynamicCacheManager
getCache
in interface DynamicCacheManager<com.hazelcast.map.IMap<Object,Object>>
name
- The name of the cacheSyncCache
instance