Class CacheEventFilterConverterAsKeyValueFilterConverter<K,V,C>
- java.lang.Object
-
- org.infinispan.filter.AbstractKeyValueFilterConverter<K,V,C>
-
- org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverterAsKeyValueFilterConverter<K,V,C>
-
- All Implemented Interfaces:
Converter<K,V,C>
,KeyValueFilter<K,V>
,KeyValueFilterConverter<K,V,C>
public class CacheEventFilterConverterAsKeyValueFilterConverter<K,V,C> extends AbstractKeyValueFilterConverter<K,V,C>
- Since:
- 7.2
- Author:
- anistor@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheEventFilterConverterAsKeyValueFilterConverter.Externalizer
-
Constructor Summary
Constructors Constructor Description CacheEventFilterConverterAsKeyValueFilterConverter(CacheEventFilterConverter<K,V,C> cacheEventFilterConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
filterAndConvert(K key, V value, Metadata metadata)
Will both filter the entry and if passed subsequently convert the value to a new value.protected void
injectDependencies(ComponentRegistry cr)
-
Methods inherited from class org.infinispan.filter.AbstractKeyValueFilterConverter
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.filter.KeyValueFilter
format
-
-
-
-
Constructor Detail
-
CacheEventFilterConverterAsKeyValueFilterConverter
public CacheEventFilterConverterAsKeyValueFilterConverter(CacheEventFilterConverter<K,V,C> cacheEventFilterConverter)
-
-
Method Detail
-
filterAndConvert
public C filterAndConvert(K key, V value, Metadata metadata)
Description copied from interface:KeyValueFilterConverter
Will both filter the entry and if passed subsequently convert the value to a new value. A returned value of null will symbolize the value not passing the filter, so ensure your conversion will not return null if you want this entry to be returned.- Parameters:
key
- The key of the entry to filtervalue
- The value of the entry to filter and then convertmetadata
- The metadata attached to the entry- Returns:
- The converted value or null if the filter didn't pass
-
injectDependencies
protected void injectDependencies(ComponentRegistry cr)
-
-