Class CacheEventListenerRegistrar<K,V>
- java.lang.Object
-
- org.wildfly.clustering.infinispan.listener.EventListenerRegistrar
-
- org.wildfly.clustering.infinispan.listener.CacheEventListenerRegistrar<K,V>
-
- 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
Constructors Constructor Description CacheEventListenerRegistrar(org.infinispan.Cache<K,V> cache)CacheEventListenerRegistrar(org.infinispan.Cache<K,V> cache, Object listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerRegistrationregister(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 class org.wildfly.clustering.infinispan.listener.EventListenerRegistrar
register
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.infinispan.listener.CacheListenerRegistrar
register, register
-
Methods inherited from interface org.wildfly.clustering.infinispan.listener.ListenerRegistrar
register
-
-
-
-
Method Detail
-
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
-
-