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 Details

    • InfinispanSyncCache

      public InfinispanSyncCache(io.micronaut.core.convert.ConversionService conversionService, org.infinispan.client.hotrod.RemoteCache<Object,Object> nativeCache)
      Parameters:
      conversionService - the conversion service
      nativeCache - the native cache
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Cache<org.infinispan.client.hotrod.RemoteCache<Object,Object>>
      Specified by:
      getName in class AbstractMapBasedSyncCache<org.infinispan.client.hotrod.RemoteCache<Object,Object>>
      Returns:
      The name of the cache
    • 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

      public org.reactivestreams.Publisher<CacheInfo> getCacheInfo()
      Returns:
      The cache information.