public class InfinispanSyncCache extends AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>
SyncCache
implementation based on Infinispan's RemoteCache
.Constructor and Description |
---|
InfinispanSyncCache(io.micronaut.core.convert.ConversionService<?> conversionService,
org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object> nativeCache) |
Modifier and Type | Method and Description |
---|---|
AsyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> |
async()
This method returns an async version of this cache interface implementation.
|
org.reactivestreams.Publisher<CacheInfo> |
getCacheInfo() |
java.lang.String |
getName() |
get, get, getConversionService, getNativeCache, invalidate, invalidateAll, put, putIfAbsent, putIfAbsent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, getExecutorService
public InfinispanSyncCache(io.micronaut.core.convert.ConversionService<?> conversionService, org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object> nativeCache)
conversionService
- the conversion servicenativeCache
- the native cachepublic java.lang.String getName()
getName
in interface Cache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>
getName
in class AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>>
@Nonnull public AsyncCache<org.infinispan.client.hotrod.RemoteCache<java.lang.Object,java.lang.Object>> async()
SyncCache
This method returns an async version of this cache interface implementation.
The default behaviour will execute the operations in the same thread if null
is returned from SyncCache.getExecutorService()
. If an executor service is returned, the
operations will be offloaded to the provided executor service.
AsyncCache
implementation for this cachepublic org.reactivestreams.Publisher<CacheInfo> getCacheInfo()