Interface CacheEntryEventFilter<K,V>
- Type Parameters:
K- the type of keyV- the type of value
public interface CacheEntryEventFilter<K,V>
A function that may be used to check
CacheEntryEvents prior to being
dispatched to CacheEntryListeners.
A filter must not create side effects.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(CacheEntryEvent<? extends K, ? extends V> event) Evaluates specifiedCacheEntryEvent.
-
Method Details
-
evaluate
boolean evaluate(CacheEntryEvent<? extends K, ? extends V> event) throws CacheEntryListenerException Evaluates specifiedCacheEntryEvent.- Parameters:
event- the event that occurred- Returns:
- true if the evaluation passes, otherwise false. The effect of returning true is that listener will be invoked
- Throws:
CacheEntryListenerException- if there is problem executing the listener
-