Package org.infinispan.filter
Interface KeyValueFilter<K,V>
-
- All Known Subinterfaces:
KeyValueFilterConverter<K,V,C>
- All Known Implementing Classes:
AbstractKeyValueFilterConverter,AcceptAllKeyValueFilter,CacheEventFilterAsKeyValueFilter,CacheEventFilterConverterAsKeyValueFilterConverter,CompositeKeyValueFilter
@ThreadSafe public interface KeyValueFilter<K,V>A filter for keys with their values.- Since:
- 7.0
- Author:
- William Burns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanaccept(K key, V value, Metadata metadata)default org.infinispan.commons.dataconversion.MediaTypeformat()
-
-
-
Method Detail
-
accept
boolean accept(K key, V value, Metadata metadata)
- Parameters:
key- key to testvalue- value to use (could be null for the case of removal)metadata- metadata- Returns:
- true if the given key is accepted by this filter.
-
format
default org.infinispan.commons.dataconversion.MediaType format()
- Returns:
- The desired data format to be used in the
accept(Object, Object, Metadata)operation. If null, the filter will receive data as it's stored.
-
-