Class CoherenceSyncCache

  • All Implemented Interfaces:
    io.micronaut.cache.Cache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>>, io.micronaut.cache.SyncCache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>>

    public class CoherenceSyncCache
    extends io.micronaut.cache.AbstractMapBasedSyncCache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>>
    A SyncCache implementation based on Coherence.
    Since:
    1.0
    Author:
    Vaso Putica
    • Constructor Summary

      Constructors 
      Constructor Description
      CoherenceSyncCache​(io.micronaut.core.convert.ConversionService<?> conversionService, com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object> nativeCache, java.util.concurrent.ExecutorService executorService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micronaut.cache.AsyncCache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>> async()  
      java.lang.String getName()  
      • 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.Cache

        getCacheInfo
      • Methods inherited from interface io.micronaut.cache.SyncCache

        get, get, getExecutorService
    • Constructor Detail

      • CoherenceSyncCache

        public CoherenceSyncCache​(io.micronaut.core.convert.ConversionService<?> conversionService,
                                  com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object> nativeCache,
                                  java.util.concurrent.ExecutorService executorService)
        Parameters:
        conversionService - the conversion service
        nativeCache - the native cache
        executorService - managers the pool of executors
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.micronaut.cache.Cache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>>
        Specified by:
        getName in class io.micronaut.cache.AbstractMapBasedSyncCache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>>
      • async

        @NonNull
        public io.micronaut.cache.AsyncCache<com.tangosol.net.NamedCache<java.lang.Object,​java.lang.Object>> async()