Package javax.cache.configuration
Interface CacheEntryListenerConfiguration<K,V>
-
- Type Parameters:
K- the type of keysV- the type of values
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
MutableCacheEntryListenerConfiguration
public interface CacheEntryListenerConfiguration<K,V> extends java.io.SerializableDefines the configuration requirements for aCacheEntryListenerand aFactoryfor its creation.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Factory<CacheEntryEventFilter<? super K,? super V>>getCacheEntryEventFilterFactory()Obtains theFactoryfor theCacheEntryEventFilterthat should be applied prior to notifying theCacheEntryListener.Factory<CacheEntryListener<? super K,? super V>>getCacheEntryListenerFactory()Obtains theFactoryfor theCacheEntryListener.booleanisOldValueRequired()Determines if the old value should be provided to theCacheEntryListener.booleanisSynchronous()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.
-
-
-
Method Detail
-
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
-
-