Class CaffeineNearCache<K,V>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.client.near.CaffeineNearCache<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 CaffeineNearCache<K,V> extends Object implements org.infinispan.client.hotrod.near.NearCache<K,V>
Near cache implementation based on a Caffeine cache.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description CaffeineNearCache(com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()org.infinispan.client.hotrod.MetadataValue<V>get(K key)Iterator<Map.Entry<K,org.infinispan.client.hotrod.MetadataValue<V>>>iterator()booleanputIfAbsent(K key, org.infinispan.client.hotrod.MetadataValue<V> value)booleanremove(K key)booleanremove(K key, org.infinispan.client.hotrod.MetadataValue<V> value)booleanreplace(K key, org.infinispan.client.hotrod.MetadataValue<V> prevValue, org.infinispan.client.hotrod.MetadataValue<V> newValue)intsize()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
remove
public boolean remove(K key)
-
replace
public boolean replace(K key, org.infinispan.client.hotrod.MetadataValue<V> prevValue, org.infinispan.client.hotrod.MetadataValue<V> newValue)
-
clear
public void clear()
-
size
public int size()
-
-