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 checkCacheEntryEvents prior to being dispatched toCacheEntryListeners.A filter must not create side effects.
- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanevaluate(CacheEntryEvent<? extends K,? extends V> event)Evaluates specifiedCacheEntryEvent.
-
-
-
Method Detail
-
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
-
-