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

    Modifier and Type
    Method
    Description
    boolean
    accept(K key, V value, Metadata metadata)
     
    default MediaType
     
  • Method Details

    • accept

      boolean accept(K key, V value, Metadata metadata)
      Parameters:
      key - key to test
      value - 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 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.