Class NonBlockingCacheEventListener<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.NonBlockingCacheEventListener<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>>
- 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
ConstructorsConstructorDescriptionNonBlockingCacheEventListener(BiConsumer<K, V> consumer) Creates a blocking cache event listener.NonBlockingCacheEventListener(Consumer<K> consumer) Creates a blocking cache event listener. -
Method Summary
-
Constructor Details
-
NonBlockingCacheEventListener
-
NonBlockingCacheEventListener
Creates a blocking cache event listener.- Parameters:
consumer- a consumer for a given event
-
-
Method Details
-
apply
-
accept
-