Interface CacheEntryListenerConfiguration<K,V>
- Type Parameters:
K- the type of keysV- the type of values
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
MutableCacheEntryListenerConfiguration
Defines the configuration requirements for a
CacheEntryListener and a Factory for its
creation.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionFactory<CacheEntryEventFilter<? super K, ? super V>> Obtains theFactoryfor theCacheEntryEventFilterthat should be applied prior to notifying theCacheEntryListener.Factory<CacheEntryListener<? super K, ? super V>> Obtains theFactoryfor theCacheEntryListener.booleanDetermines if the old value should be provided to theCacheEntryListener.booleanDetermines if the thread that caused an event to be created should be blocked (not return from the operation causing the event) until theCacheEntryListenerhas been notified.
-
Method Details
-
getCacheEntryListenerFactory
Factory<CacheEntryListener<? super K, ? super V>> getCacheEntryListenerFactory()Obtains theFactoryfor theCacheEntryListener.- Returns:
- the
Factoryfor theCacheEntryListener
-
isOldValueRequired
boolean isOldValueRequired()Determines if the old value should be provided to theCacheEntryListener.- Returns:
trueif the old value is required by theCacheEntryListener
-
getCacheEntryEventFilterFactory
Factory<CacheEntryEventFilter<? super K, ? super V>> getCacheEntryEventFilterFactory()Obtains theFactoryfor theCacheEntryEventFilterthat should be applied prior to notifying theCacheEntryListener.When
nullno filtering is applied and all appropriate events are notified.- Returns:
- the
Factoryfor theCacheEntryEventFilterornullif no filtering is required
-
isSynchronous
boolean isSynchronous()Determines if the thread that caused an event to be created should be blocked (not return from the operation causing the event) until theCacheEntryListenerhas been notified.- Returns:
trueif the thread that created the event should block
-