Package io.micronaut.cache.infinispan
Class InfinispanSyncCache
java.lang.Object
io.micronaut.cache.AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>>
io.micronaut.cache.infinispan.InfinispanSyncCache
- All Implemented Interfaces:
Cache<org.infinispan.client.hotrod.RemoteCache<Object,
,Object>> SyncCache<org.infinispan.client.hotrod.RemoteCache<Object,
Object>>
public class InfinispanSyncCache
extends AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>>
A
SyncCache
implementation based on Infinispan's RemoteCache
.- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorDescriptionInfinispanSyncCache
(io.micronaut.core.convert.ConversionService conversionService, org.infinispan.client.hotrod.RemoteCache<Object, Object> nativeCache) -
Method Summary
Methods inherited from class io.micronaut.cache.AbstractMapBasedSyncCache
get, get, getConversionService, getNativeCache, invalidate, invalidateAll, put, putIfAbsent, putIfAbsent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.cache.SyncCache
get, get, getExecutorService
-
Constructor Details
-
Method Details
-
getName
-
async
@NonNull public @NonNull AsyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>> async()Description copied from interface: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.- Returns:
- The
AsyncCache
implementation for this cache
-
getCacheInfo
- Returns:
- The cache information.
-