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 checkCacheEntryEvent
s prior to being dispatched toCacheEntryListener
s.A filter must not create side effects.
- Since:
- 1.0
- Author:
- Greg Luck, Brian Oliver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
evaluate(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
-
-