Class IckleCacheEventFilterConverter<K,V,C>
- java.lang.Object
-
- org.infinispan.notifications.cachelistener.filter.AbstractCacheEventFilterConverter<K,V,C>
-
- org.infinispan.query.dsl.embedded.impl.IckleCacheEventFilterConverter<K,V,C>
-
- All Implemented Interfaces:
CacheEventConverter<K,V,C>
,CacheEventFilter<K,V>
,CacheEventFilterConverter<K,V,C>
,IndexedFilter<K,V,C>
public class IckleCacheEventFilterConverter<K,V,C> extends AbstractCacheEventFilterConverter<K,V,C> implements IndexedFilter<K,V,C>
- Since:
- 7.2
- Author:
- anistor@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IckleCacheEventFilterConverter.Externalizer
-
Field Summary
Fields Modifier and Type Field Description protected IckleFilterAndConverter<K,V>
filterAndConverter
-
Constructor Summary
Constructors Constructor Description IckleCacheEventFilterConverter(IckleFilterAndConverter<K,V> filterAndConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
filterAndConvert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
Will both filter the entry and if passed subsequently convert the value to a new value.protected void
injectDependencies(ComponentRegistry componentRegistry)
-
Methods inherited from class org.infinispan.notifications.cachelistener.filter.AbstractCacheEventFilterConverter
accept, convert
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventConverter
convert, useRequestFormat
-
Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventFilter
accept
-
Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter
format
-
-
-
-
Field Detail
-
filterAndConverter
protected final IckleFilterAndConverter<K,V> filterAndConverter
-
-
Constructor Detail
-
IckleCacheEventFilterConverter
public IckleCacheEventFilterConverter(IckleFilterAndConverter<K,V> filterAndConverter)
-
-
Method Detail
-
injectDependencies
protected void injectDependencies(ComponentRegistry componentRegistry)
-
filterAndConvert
public C filterAndConvert(K key, V oldValue, Metadata oldMetadata, V newValue, Metadata newMetadata, EventType eventType)
Description copied from interface:CacheEventFilterConverter
Will both filter the entry and if passed subsequently convert the value to a new value. A returned value ofnull
will symbolize the value not passing the filter, so ensure your conversion will not returnnull
if you want this entry to be returned.- Specified by:
filterAndConvert
in interfaceCacheEventFilterConverter<K,V,C>
- Parameters:
key
- The key for the entry that was changed for the eventoldValue
- The previous value before the event takes placeoldMetadata
- The old value before the event takes placenewValue
- The new value for the entry after the event takes placenewMetadata
- The new metadata for the entry after the event takes placeeventType
- The type of event that is being raised- Returns:
- A non
null
value converted value when it also passes the filter ornull
for when it doesn't pass the filter
-
-