Class PostActivateBlockingListener<K,V>

Type Parameters:
K - cache key type
V - cache value type
All Implemented Interfaces:
CacheListenerRegistrar<K,V>, ListenerRegistrar

public class PostActivateBlockingListener<K,V> extends CacheEventListenerRegistrar<K,V>
Generic non-blocking post-activation listener that delegates to a blocking consumer.
Author:
Paul Ferraro
  • Constructor Details

    • PostActivateBlockingListener

      public PostActivateBlockingListener(org.infinispan.Cache<K,V> cache, BiConsumer<K,V> listener)
      Creates a blocking listener of post-activate events.
      Parameters:
      cache - an embedded cache
      listener - 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