Class NonBlockingCacheEventListener<K,V>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.listener.NonBlockingCacheEventListener<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>>
- Direct Known Subclasses:
BlockingCacheEventListener
public class NonBlockingCacheEventListener<K,V> extends Object implements Function<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V>,CompletionStage<Void>>, Consumer<org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V>>
Generic non-blocking event listener that delegates to a non-blocking event consumer.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description NonBlockingCacheEventListener(BiConsumer<K,V> consumer)NonBlockingCacheEventListener(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)
-
-
-
Constructor Detail
-
NonBlockingCacheEventListener
public NonBlockingCacheEventListener(BiConsumer<K,V> consumer)
-
-
Method Detail
-
apply
public CompletionStage<Void> apply(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<K,V> event)
-
-