Class CaffeineNearCacheService<K,V>
java.lang.Object
org.infinispan.client.hotrod.near.NearCacheService<K,V>
org.wildfly.clustering.infinispan.client.near.CaffeineNearCacheService<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,,org.infinispan.client.hotrod.MetadataValue<V>>> org.infinispan.client.hotrod.near.NearCache<K,V>
public class CaffeineNearCacheService<K,V>
extends org.infinispan.client.hotrod.near.NearCacheService<K,V>
Near cache service that constructs its near cache using a generic factory.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCaffeineNearCacheService(Supplier<com.github.benmanes.caffeine.cache.Cache<K, org.infinispan.client.hotrod.MetadataValue<V>>> factory, org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier) -
Method Summary
Modifier and TypeMethodDescriptioncreateNearCache(org.infinispan.client.hotrod.configuration.NearCacheConfiguration config, BiConsumer<K, org.infinispan.client.hotrod.MetadataValue<V>> removedConsumer) Methods inherited from class org.infinispan.client.hotrod.near.NearCacheService
calculateBloomBits, clear, create, get, getBloomFilterBits, getListenerId, iterator, putIfAbsent, remove, remove, replace, setInvalidationCallback, size, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CaffeineNearCacheService
-
-
Method Details
-
createNearCache
protected org.infinispan.client.hotrod.near.NearCache<K,V> createNearCache(org.infinispan.client.hotrod.configuration.NearCacheConfiguration config, BiConsumer<K, org.infinispan.client.hotrod.MetadataValue<V>> removedConsumer)
-