Interface CacheListenerRegistrar<K,V>
- All Superinterfaces:
ListenerRegistrar
- All Known Implementing Classes:
CacheEventListenerRegistrar,PostActivateBlockingListener,PostPassivateBlockingListener,PrePassivateBlockingListener,PrePassivateNonBlockingListener
A registering cache listener.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListenerRegistrationRegisters this listener events for cache entries whose key is an instance of the specified class.default ListenerRegistrationRegisters 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.infinispan.listener.ListenerRegistrar
register
-
Method Details
-
register
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
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
-