Class EvictionListener<K,V>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.client.near.EvictionListener<K,V>
-
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.RemovalListener<K,org.infinispan.client.hotrod.MetadataValue<V>>,Consumer<com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>>>
public class EvictionListener<K,V> extends Object implements com.github.benmanes.caffeine.cache.RemovalListener<K,org.infinispan.client.hotrod.MetadataValue<V>>, Consumer<com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>>>
Removal listener that triggers the specified listener when the removal cause isRemovalCause.SIZE.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description EvictionListener(BiConsumer<K,org.infinispan.client.hotrod.MetadataValue<V>> defaultListener, BiConsumer<com.github.benmanes.caffeine.cache.Cache<Object,org.infinispan.client.hotrod.MetadataValue<Object>>,Map.Entry<Object,Object>> listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(com.github.benmanes.caffeine.cache.Cache<K,org.infinispan.client.hotrod.MetadataValue<V>> cache)voidonRemoval(K key, org.infinispan.client.hotrod.MetadataValue<V> value, com.github.benmanes.caffeine.cache.RemovalCause cause)
-
-
-
Constructor Detail
-
EvictionListener
public EvictionListener(BiConsumer<K,org.infinispan.client.hotrod.MetadataValue<V>> defaultListener, BiConsumer<com.github.benmanes.caffeine.cache.Cache<Object,org.infinispan.client.hotrod.MetadataValue<Object>>,Map.Entry<Object,Object>> listener)
-
-