Package javax.cache.configuration
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 theFactory
for theCacheEntryEventFilter
that should be applied prior to notifying theCacheEntryListener
.Factory
<CacheEntryListener<? super K, ? super V>> Obtains theFactory
for theCacheEntryListener
.boolean
Determines if the old value should be provided to theCacheEntryListener
.boolean
Determines if the thread that caused an event to be created should be blocked (not return from the operation causing the event) until theCacheEntryListener
has been notified.
-
Method Details
-
getCacheEntryListenerFactory
Factory<CacheEntryListener<? super K,? super V>> getCacheEntryListenerFactory()Obtains theFactory
for theCacheEntryListener
.- Returns:
- the
Factory
for theCacheEntryListener
-
isOldValueRequired
boolean isOldValueRequired()Determines if the old value should be provided to theCacheEntryListener
.- Returns:
true
if the old value is required by theCacheEntryListener
-
getCacheEntryEventFilterFactory
Factory<CacheEntryEventFilter<? super K,? super V>> getCacheEntryEventFilterFactory()Obtains theFactory
for theCacheEntryEventFilter
that should be applied prior to notifying theCacheEntryListener
.When
null
no filtering is applied and all appropriate events are notified.- Returns:
- the
Factory
for theCacheEntryEventFilter
ornull
if 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 theCacheEntryListener
has been notified.- Returns:
true
if the thread that created the event should block
-