public class InfinispanSyncCache extends AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>>
SyncCache
implementation based on Infinispan's RemoteCache
.Constructor and Description |
---|
InfinispanSyncCache(io.micronaut.core.convert.ConversionService<?> conversionService,
org.infinispan.client.hotrod.RemoteCache<Object,Object> nativeCache) |
Modifier and Type | Method and Description |
---|---|
AsyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>> |
async()
This method returns an async version of this cache interface implementation.
|
org.reactivestreams.Publisher<CacheInfo> |
getCacheInfo() |
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 String getName()
@NonNull public AsyncCache<org.infinispan.client.hotrod.RemoteCache<Object,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()