Class BlockingCacheEventListener<K,V>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.listener.NonBlockingCacheEventListener<K,V>
-
- org.wildfly.clustering.infinispan.listener.BlockingCacheEventListener<K,V>
-
- All Implemented Interfaces:
Consumer<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V>>,Function<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V>,CompletionStage<Void>>
public class BlockingCacheEventListener<K,V> extends NonBlockingCacheEventListener<K,V>
Generic non-blocking event listener that delegates to a blocking event consumer.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description BlockingCacheEventListener(org.infinispan.Cache<K,V> cache, BiConsumer<K,V> consumer)BlockingCacheEventListener(org.infinispan.Cache<K,V> cache, Consumer<K> consumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V> event)CompletionStage<Void>apply(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V> event)
-
-
-
Method Detail
-
apply
public CompletionStage<Void> apply(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V> event)
-
-