Top Description Methods
javax.cache.event

public Interface CacheEntryEventFilter<K, V>

Type Parameters
<K>
the type of key
<V>
the type of value

A function that may be used to check CacheEntryEvents prior to being dispatched to CacheEntryListeners.

A filter must not create side effects.

Authors
Greg Luck, Brian Oliver
Since
1.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the evaluation passes, otherwise false. The effect of returning true is that listener will be invoked
evaluate
(CacheEntryEvent<? extends K, ? extends V>
the event that occurred
event
)

Evaluates specified CacheEntryEvent.

Method Detail

evaluateback to summary
public boolean evaluate(CacheEntryEvent<? extends K, ? extends V> event) throws CacheEntryListenerException

Evaluates specified CacheEntryEvent.

Parameters
event:CacheEntryEvent<? extends K, ? extends V>

the event that occurred

Returns:boolean

true if the evaluation passes, otherwise false. The effect of returning true is that listener will be invoked

Exceptions
CacheEntryListenerException:
if there is problem executing the listener