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) BlockingCacheEventListener(org.infinispan.Cache<K, V> cache, Consumer<K> consumer) -
Method Summary
-
Constructor Details
-
BlockingCacheEventListener
-
BlockingCacheEventListener
-
-
Method Details
-
apply
-
accept
-