public class HazelcastSyncCache
extends io.micronaut.cache.AbstractMapBasedSyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>>
SyncCache
implementation based on Hazelcast.Constructor and Description |
---|
HazelcastSyncCache(io.micronaut.core.convert.ConversionService<?> conversionService,
com.hazelcast.core.IMap<java.lang.Object,java.lang.Object> nativeCache,
java.util.concurrent.ExecutorService executorService) |
Modifier and Type | Method and Description |
---|---|
io.micronaut.cache.AsyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>> |
async() |
java.lang.String |
getName() |
void |
put(java.lang.Object key,
java.lang.Object value) |
get, get, getConversionService, getNativeCache, invalidate, invalidateAll, putIfAbsent, putIfAbsent
public HazelcastSyncCache(io.micronaut.core.convert.ConversionService<?> conversionService, com.hazelcast.core.IMap<java.lang.Object,java.lang.Object> nativeCache, java.util.concurrent.ExecutorService executorService)
conversionService
- the conversion servicenativeCache
- the native cacheexecutorService
- managers the pool of executorspublic void put(@Nonnull java.lang.Object key, @Nonnull java.lang.Object value)
put
in interface io.micronaut.cache.SyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>>
put
in class io.micronaut.cache.AbstractMapBasedSyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>>
public java.lang.String getName()
getName
in interface io.micronaut.cache.Cache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>>
getName
in class io.micronaut.cache.AbstractMapBasedSyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>>
public io.micronaut.cache.AsyncCache<com.hazelcast.core.IMap<java.lang.Object,java.lang.Object>> async()