Package org.infinispan.filter
Class AcceptAllKeyValueFilter
- java.lang.Object
-
- org.infinispan.filter.AcceptAllKeyValueFilter
-
- All Implemented Interfaces:
KeyValueFilter<java.lang.Object,java.lang.Object>
public final class AcceptAllKeyValueFilter extends java.lang.Object implements KeyValueFilter<java.lang.Object,java.lang.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AcceptAllKeyValueFilter.Externalizer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.Object key, java.lang.Object value, Metadata metadata)
static AcceptAllKeyValueFilter
getInstance()
-
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
-
-
-
-
Method Detail
-
getInstance
public static AcceptAllKeyValueFilter getInstance()
-
accept
public boolean accept(java.lang.Object key, java.lang.Object value, Metadata metadata)
- Specified by:
accept
in interfaceKeyValueFilter<java.lang.Object,java.lang.Object>
- 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.
-
-