Interface CacheListenerRegistrar<K,V>

All Superinterfaces:
ListenerRegistrar
All Known Implementing Classes:
CacheEventListenerRegistrar, PostActivateBlockingListener, PostPassivateBlockingListener, PrePassivateBlockingListener, PrePassivateNonBlockingListener

public interface CacheListenerRegistrar<K,V> extends ListenerRegistrar
A registering cache listener.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    register(Class<? super K> keyClass)
    Registers this listener events for cache entries whose key is an instance of the specified class.
    register(Predicate<? super K> keyPredicate)
    Registers this listener events for cache entries whose key matches the specified predicate.
    register(org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter)
    Registers this listener events for cache entries that match the specified filter.

    Methods inherited from interface org.wildfly.clustering.cache.infinispan.embedded.listener.ListenerRegistrar

    register
  • Method Details

    • register

      default ListenerRegistration register(Class<? super K> keyClass)
      Registers this listener events for cache entries whose key is an instance of the specified class.
      Parameters:
      keyClass - a key class
      Returns:
      a listener registration
    • register

      default ListenerRegistration register(Predicate<? super K> keyPredicate)
      Registers this listener events for cache entries whose key matches the specified predicate.
      Parameters:
      keyClass - a key class
      Returns:
      a listener registration
    • register

      ListenerRegistration register(org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K,? super V> filter)
      Registers this listener events for cache entries that match the specified filter.
      Parameters:
      filter - a cache event filter
      Returns:
      a listener registration