Class NearCacheService<K,​V>


  • public class NearCacheService<K,​V>
    extends java.lang.Object
    Near cache service, manages the lifecycle of the near cache.
    Since:
    7.1
    • Constructor Detail

      • NearCacheService

        protected NearCacheService​(NearCacheConfiguration config,
                                   org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier)
    • Method Detail

      • createNearCache

        protected org.infinispan.client.hotrod.near.NearCache<K,​V> createNearCache​(NearCacheConfiguration config)
      • putIfAbsent

        public void putIfAbsent​(K key,
                                MetadataValue<V> value)
      • remove

        public boolean remove​(K key)
      • clear

        public void clear()
      • size

        public int size()
      • setInvalidationCallback

        public void setInvalidationCallback​(java.lang.Runnable r)