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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ListenerRegistrationregister(Class<? super K> keyClass)Registers this listener events for cache entries whose key is an instance of the specified class.default ListenerRegistrationregister(Predicate<? super K> keyPredicate)Registers this listener events for cache entries whose key matches the specified predicate.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 interface org.wildfly.clustering.infinispan.listener.ListenerRegistrar
register
-
-
-
-
Method Detail
-
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
-
-