Class CacheEventListenerRegistrar<K,V>
java.lang.Object
org.wildfly.clustering.cache.infinispan.embedded.listener.EventListenerRegistrar
org.wildfly.clustering.cache.infinispan.embedded.listener.CacheEventListenerRegistrar<K,V>
- Type Parameters:
K- cache key typeV- cache value type
- All Implemented Interfaces:
CacheListenerRegistrar<K,V>, ListenerRegistrar
- Direct Known Subclasses:
PostActivateBlockingListener, PostPassivateBlockingListener, PrePassivateBlockingListener, PrePassivateNonBlockingListener
public class CacheEventListenerRegistrar<K,V>
extends EventListenerRegistrar
implements CacheListenerRegistrar<K,V>
A registering cache event listener.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCacheEventListenerRegistrar(org.infinispan.notifications.FilteringListenable<K, V> listenable) Creates a registrar for a cache event listenerCacheEventListenerRegistrar(org.infinispan.notifications.FilteringListenable<K, V> listenable, Object listener) Creates a registrar for a cache event listener -
Method Summary
Methods 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
-
CacheEventListenerRegistrar
-
CacheEventListenerRegistrar
-
-
Method Details
-
register
public ListenerRegistration register(org.infinispan.notifications.cachelistener.filter.CacheEventFilter<? super K, ? super V> filter) Description copied from interface:CacheListenerRegistrarRegisters this listener events for cache entries that match the specified filter.- Specified by:
registerin interfaceCacheListenerRegistrar<K,V> - Parameters:
filter- a cache event filter- Returns:
- a listener registration
-