Package org.infinispan.filter
Interface KeyValueFilter<K,V>
- All Known Subinterfaces:
KeyValueFilterConverter<K,
V, C>
- All Known Implementing Classes:
AbstractKeyValueFilterConverter
,AcceptAllKeyValueFilter
,CacheEventFilterAsKeyValueFilter
,CacheEventFilterConverterAsKeyValueFilterConverter
,CompositeKeyValueFilter
,IterationFilter
@ThreadSafe
public interface KeyValueFilter<K,V>
A filter for keys with their values.
- Since:
- 7.0
- Author:
- William Burns
-
Method Summary
-
Method Details
-
accept
- 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
- 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.
-