@Singleton public class HazelcastCacheManager extends java.lang.Object implements DynamicCacheManager<com.hazelcast.map.IMap<java.lang.Object,java.lang.Object>>
CacheManager
implementation for Hazelcast.Constructor and Description |
---|
HazelcastCacheManager(io.micronaut.core.convert.ConversionService<?> conversionService,
com.hazelcast.core.HazelcastInstance hazelcastInstance,
java.util.concurrent.ExecutorService executorService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SyncCache<com.hazelcast.map.IMap<java.lang.Object,java.lang.Object>> |
getCache(java.lang.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") java.util.concurrent.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<java.lang.Object,java.lang.Object>> getCache(java.lang.String name)
DynamicCacheManager
getCache
in interface DynamicCacheManager<com.hazelcast.map.IMap<java.lang.Object,java.lang.Object>>
name
- The name of the cacheSyncCache
instance