Class CacheEventFilterAsKeyValueFilter<K,V>
java.lang.Object
org.infinispan.notifications.cachelistener.filter.CacheEventFilterAsKeyValueFilter<K,V>
- All Implemented Interfaces:
KeyValueFilter<K,
V>
KeyValueFilter that is implemented by using the provided CacheEventFilter. The provided event type will always be
one that is not retried, post and of type CREATE, The old value and old metadata in both pre and post events will
be the data that was in the cache before the event occurs. The new value and new metadata in both pre and post
events will be the data that is in the cache after the event occurs.
- Since:
- 7.0
- Author:
- wburns
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
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
-
Constructor Details
-
CacheEventFilterAsKeyValueFilter
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceKeyValueFilter<K,
V> - 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.
-
injectDependencies
-