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.Serializable
Defines the configuration requirements for aCacheEntryListener
and aFactory
for 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 theFactory
for theCacheEntryEventFilter
that should be applied prior to notifying theCacheEntryListener
.Factory<CacheEntryListener<? super K,? super V>>
getCacheEntryListenerFactory()
Obtains theFactory
for theCacheEntryListener
.boolean
isOldValueRequired()
Determines if the old value should be provided to theCacheEntryListener
.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.
-
-
-
Method Detail
-
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
-
-