Class BlockingCacheEventListener<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.NonBlockingCacheEventListener<K,V>
org.wildfly.clustering.cache.infinispan.embedded.listener.BlockingCacheEventListener<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
Consumer<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V>>, Function<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K, V>, CompletionStage<Void>>
Generic non-blocking event listener that delegates to a blocking event consumer.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionBlockingCacheEventListener(org.infinispan.Cache<K, V> cache, BiConsumer<K, V> consumer) Creates a blocking cache event listener.BlockingCacheEventListener(org.infinispan.Cache<K, V> cache, Consumer<K> consumer) Creates a blocking cache event listener. -
Method Summary
-
Constructor Details
-
BlockingCacheEventListener
-
BlockingCacheEventListener
Creates a blocking cache event listener.- Parameters:
cache- the target cacheconsumer- a consumer of a cache entry
-
-
Method Details
-
apply
-
accept
-