Class AcceptAllKeyValueFilter

java.lang.Object
org.infinispan.filter.AcceptAllKeyValueFilter
All Implemented Interfaces:
KeyValueFilter<Object,Object>

public final class AcceptAllKeyValueFilter extends Object implements KeyValueFilter<Object,Object>
A key value filter that accepts all entries found.

This filter should be used carefully as it may cause the operation to perform very slowly as all entries are accepted.

Since:
7.0
Author:
wburns
  • Method Details

    • getInstance

      public static AcceptAllKeyValueFilter getInstance()
    • accept

      public boolean accept(Object key, Object value, Metadata metadata)
      Specified by:
      accept in interface KeyValueFilter<Object,Object>
      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.