Class PostActivateBlockingListener<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.EventListenerRegistrar
org.wildfly.clustering.cache.infinispan.embedded.listener.CacheEventListenerRegistrar<K,V>
org.wildfly.clustering.cache.infinispan.embedded.listener.PostActivateBlockingListener<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
CacheListenerRegistrar<K,V>, ListenerRegistrar
Generic non-blocking post-activation listener that delegates to a blocking consumer.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionPostActivateBlockingListener(org.infinispan.Cache<K, V> cache, BiConsumer<K, V> listener) Creates a blocking listener of post-activate events. -
Method Summary
Modifier and TypeMethodDescriptionpostActivate(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<K, V> event) Handles cache entry activation events.Methods inherited from class CacheEventListenerRegistrar
registerMethods inherited from class EventListenerRegistrar
registerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CacheListenerRegistrar
register, registerMethods inherited from interface ListenerRegistrar
register
-
Constructor Details
-
PostActivateBlockingListener
Creates a blocking listener of post-activate events.- Parameters:
cache- an embedded cachelistener- a consumer of post-activate events
-
-
Method Details
-
postActivate
public CompletionStage<Void> postActivate(org.infinispan.notifications.cachelistener.event.CacheEntryActivatedEvent<K, V> event) Handles cache entry activation events.- Parameters:
event- a cache entry activation event- Returns:
- a completion stage
-