Package javax.cache.event
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
CacheEntryEvent
s prior to being
dispatched to CacheEntryListener
s.
A filter must not create side effects.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
evaluate
(CacheEntryEvent<? extends K, ? extends V> event) Evaluates specifiedCacheEntryEvent
.
-
Method Details
-
evaluate
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
-