K - the type of keys maintained the cacheV - the type of cached valuesSerializable, CacheEntryListenerConfiguration<K,V>public class MutableCacheEntryListenerConfiguration<K,V> extends Object implements CacheEntryListenerConfiguration<K,V>
CacheEntryListenerConfiguration.| Modifier and Type | Field | Description |
|---|---|---|
static long |
serialVersionUID |
The serialVersionUID required for
Serializable. |
| Constructor | Description |
|---|---|
MutableCacheEntryListenerConfiguration(CacheEntryListenerConfiguration<K,V> configuration) |
Constructs a
MutableCacheEntryListenerConfiguration based on
another CacheEntryListenerConfiguration. |
MutableCacheEntryListenerConfiguration(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory,
Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory,
boolean isOldValueRequired,
boolean isSynchronous) |
Constructs a
MutableCacheEntryListenerConfiguration. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object object) |
|
Factory<CacheEntryEventFilter<? super K,? super V>> |
getCacheEntryEventFilterFactory() |
Obtains the
Factory for the CacheEntryEventFilter that should be
applied prior to notifying the CacheEntryListener. |
Factory<CacheEntryListener<? super K,? super V>> |
getCacheEntryListenerFactory() |
Obtains the
Factory for the
CacheEntryListener. |
int |
hashCode() |
|
boolean |
isOldValueRequired() |
Determines if the old value should be provided to the
CacheEntryListener. |
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 the
CacheEntryListener has been notified. |
MutableCacheEntryListenerConfiguration<K,V> |
setCacheEntryEventFilterFactory(Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory) |
Sets the
Factory to be used to create a CacheEntryEventFilter. |
MutableCacheEntryListenerConfiguration<K,V> |
setCacheEntryListenerFactory(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory) |
Sets the
Factory to be used to create a CacheEntryListener. |
MutableCacheEntryListenerConfiguration<K,V> |
setOldValueRequired(boolean isOldValueRequired) |
Sets if the old value should be provided to the
CacheEntryListener. |
MutableCacheEntryListenerConfiguration<K,V> |
setSynchronous(boolean isSynchronous) |
Sets if the thread that causes an event should be blocked
(not return from the operation causing the event) until the
CacheEntryListener has been notified. |
public static final long serialVersionUID
Serializable.public MutableCacheEntryListenerConfiguration(CacheEntryListenerConfiguration<K,V> configuration)
MutableCacheEntryListenerConfiguration based on
another CacheEntryListenerConfiguration.configuration - the CacheEntryListenerConfigurationpublic MutableCacheEntryListenerConfiguration(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory, Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory, boolean isOldValueRequired, boolean isSynchronous)
MutableCacheEntryListenerConfiguration.listenerFactory - the CacheEntryListener FactoryfilterFactory - the optional CacheEntryEventFilter FactoryisOldValueRequired - if the old value is required for events with this listenerFactoryisSynchronous - if the listenerFactory should block the thread causing the eventpublic Factory<CacheEntryListener<? super K,? super V>> getCacheEntryListenerFactory()
Factory for the
CacheEntryListener.getCacheEntryListenerFactory in interface CacheEntryListenerConfiguration<K,V>Factory for the
CacheEntryListenerpublic MutableCacheEntryListenerConfiguration<K,V> setCacheEntryListenerFactory(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory)
Factory to be used to create a CacheEntryListener.listenerFactory - the FactoryMutableCacheEntryListenerConfiguration to permit
fluent-style method callspublic Factory<CacheEntryEventFilter<? super K,? super V>> getCacheEntryEventFilterFactory()
Factory for the CacheEntryEventFilter that should be
applied prior to notifying the CacheEntryListener.
When null no filtering is applied and all appropriate events
are notified.
getCacheEntryEventFilterFactory in interface CacheEntryListenerConfiguration<K,V>Factory for the
CacheEntryEventFilter or null
if no filtering is requiredpublic MutableCacheEntryListenerConfiguration<K,V> setCacheEntryEventFilterFactory(Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory)
Factory to be used to create a CacheEntryEventFilter.filterFactory - the Factory, or null if event
filtering is not requriedMutableCacheEntryListenerConfiguration to permit
fluent-style method callspublic boolean isOldValueRequired()
CacheEntryListener.isOldValueRequired in interface CacheEntryListenerConfiguration<K,V>true if the old value is required by the
CacheEntryListenerpublic MutableCacheEntryListenerConfiguration<K,V> setOldValueRequired(boolean isOldValueRequired)
CacheEntryListener.isOldValueRequired - true if the old value is requiredMutableCacheEntryListenerConfiguration to permit
fluent-style method callspublic boolean isSynchronous()
CacheEntryListener has been notified.isSynchronous in interface CacheEntryListenerConfiguration<K,V>true if the thread that created the event should blockpublic MutableCacheEntryListenerConfiguration<K,V> setSynchronous(boolean isSynchronous)
CacheEntryListener has been notified.isSynchronous - true means block until notifiedMutableCacheEntryListenerConfiguration to permit
fluent-style method callsCopyright © 2017. All rights reserved.