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 is
RemovalCause.SIZE.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionEvictionListener(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
-
Constructor Details
-
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)
-
-
Method Details
-
accept
-
onRemoval
-